From d64a2e46f7286387dc7c8823e278fc00e8bcaff9 Mon Sep 17 00:00:00 2001
From: H3CoF6 <1707889225@qq.com>
Date: Wed, 8 Apr 2026 06:39:06 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=AF=BC=E5=85=A5?=
=?UTF-8?q?=E5=B7=B2=E8=A7=A3=E5=AF=86=E7=9B=AE=E5=BD=95=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E4=B8=8D=E8=B5=B0=E5=AF=86=E9=92=A5?=
=?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=AF=BC=E5=85=A5=E5=B7=B2=E8=A7=A3=E5=AF=86?=
=?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BA=93=E5=92=8C=E8=B5=84=E6=BA=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/composables/useApi.js | 8 +
frontend/pages/decrypt.vue | 161 ++++++++++++++++--
src/wechat_decrypt_tool/api.py | 2 +
.../routers/import_decrypted.py | 135 +++++++++++++++
4 files changed, 294 insertions(+), 12 deletions(-)
create mode 100644 src/wechat_decrypt_tool/routers/import_decrypted.py
diff --git a/frontend/composables/useApi.js b/frontend/composables/useApi.js
index 13efb89..24bb518 100644
--- a/frontend/composables/useApi.js
+++ b/frontend/composables/useApi.js
@@ -61,6 +61,14 @@ export const useApi = () => {
body: data
})
}
+
+ // 导入已解密目录API
+ const importDecrypted = async (data) => {
+ return await request('/import_decrypted', {
+ method: 'POST',
+ body: data
+ })
+ }
// 健康检查API
const healthCheck = async () => {
diff --git a/frontend/pages/decrypt.vue b/frontend/pages/decrypt.vue
index 4e90eed..399ab33 100644
--- a/frontend/pages/decrypt.vue
+++ b/frontend/pages/decrypt.vue
@@ -16,13 +16,31 @@
输入密钥和路径开始解密
+选择解密新数据或导入已解密目录
+