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 @@
选择解密新数据或导入已解密目录
-输入密钥和路径开始解密