From ad6031651b988b10d663c2c3f5b18b2e946ccd53 Mon Sep 17 00:00:00 2001
From: H3CoF6 <1707889225@qq.com>
Date: Wed, 8 Apr 2026 07:00:53 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=AF=BC=E5=85=A5?=
=?UTF-8?q?=E6=B5=81=E7=A8=8B=EF=BC=8C=E5=B0=86=E5=AF=BC=E5=85=A5=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E7=A7=BB=E8=87=B3=E9=A6=96=E9=A1=B5=E5=B9=B6=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E7=9B=AE=E5=BD=95=E9=80=89=E6=8B=A9=E5=92=8C=E8=B4=A6?=
=?UTF-8?q?=E5=8F=B7=E9=A2=84=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/composables/useApi.js | 10 ++
frontend/pages/decrypt.vue | 161 ++----------------
frontend/pages/index.vue | 155 +++++++++++++++--
.../routers/import_decrypted.py | 109 ++++++++----
4 files changed, 238 insertions(+), 197 deletions(-)
diff --git a/frontend/composables/useApi.js b/frontend/composables/useApi.js
index 24bb518..c4ac4b6 100644
--- a/frontend/composables/useApi.js
+++ b/frontend/composables/useApi.js
@@ -62,6 +62,14 @@ export const useApi = () => {
})
}
+ // 导入预览API
+ const importDecryptedPreview = async (data) => {
+ return await request('/import_decrypted/preview', {
+ method: 'POST',
+ body: data
+ })
+ }
+
// 导入已解密目录API
const importDecrypted = async (data) => {
return await request('/import_decrypted', {
@@ -613,6 +621,8 @@ export const useApi = () => {
detectWechat,
detectCurrentAccount,
decryptDatabase,
+ importDecryptedPreview,
+ importDecrypted,
healthCheck,
listChatAccounts,
getChatAccountInfo,
diff --git a/frontend/pages/decrypt.vue b/frontend/pages/decrypt.vue
index 399ab33..4e90eed 100644
--- a/frontend/pages/decrypt.vue
+++ b/frontend/pages/decrypt.vue
@@ -16,31 +16,13 @@
选择解密新数据或导入已解密目录
-输入密钥和路径开始解密