From 0ccd2016e7be44485a9a5baa1d75971ed0d512bb Mon Sep 17 00:00:00 2001 From: H3CoF6 <1707889225@qq.com> Date: Wed, 8 Apr 2026 16:43:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E4=BB=B6=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8=20+=20=E4=BF=A1=E6=81=AF=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/composables/useApi.js | 9 ++++++ frontend/pages/import.vue | 38 ++++++++++++++--------- src/wechat_decrypt_tool/api.py | 2 ++ src/wechat_decrypt_tool/routers/system.py | 35 +++++++++++++++++++++ 4 files changed, 70 insertions(+), 14 deletions(-) create mode 100644 src/wechat_decrypt_tool/routers/system.py diff --git a/frontend/composables/useApi.js b/frontend/composables/useApi.js index c4ac4b6..a5be2d2 100644 --- a/frontend/composables/useApi.js +++ b/frontend/composables/useApi.js @@ -617,7 +617,16 @@ export const useApi = () => { return `${base}/biz/proxy_image?${query.toString()}` } + const pickSystemDirectory = async (params = {}) => { + const query = new URLSearchParams() + if (params && params.title) query.set('title', params.title) + if (params && params.initial_dir) query.set('initial_dir', params.initial_dir) + const url = '/system/pick_directory' + (query.toString() ? `?${query.toString()}` : '') + return await request(url) + } + return { + pickSystemDirectory, detectWechat, detectCurrentAccount, decryptDatabase, diff --git a/frontend/pages/import.vue b/frontend/pages/import.vue index 2c6e694..e0221ef 100644 --- a/frontend/pages/import.vue +++ b/frontend/pages/import.vue @@ -17,7 +17,6 @@ -

@@ -26,9 +25,9 @@ 标准目录结构要求

@@ -119,10 +118,8 @@