From a64fc23f8715bd749a01d9d61d09f762e46cad00 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 6 Sep 2023 10:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E6=9B=B4=E6=8D=A2=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=EF=BC=8C=E8=B0=83=E6=95=B4=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/common/Config.vue | 94 ++++++++++++++----------------------- 1 file changed, 36 insertions(+), 58 deletions(-) diff --git a/src/pages/common/Config.vue b/src/pages/common/Config.vue index 22d113de..b7697ce0 100644 --- a/src/pages/common/Config.vue +++ b/src/pages/common/Config.vue @@ -2,7 +2,7 @@ - 应用信息 + - 系统信息 + - - + - - + - + @@ -446,26 +444,6 @@ async function confirmDelUC(): Promise { await fs.createDir("userData", { dir: fs.BaseDirectory.AppLocalData }); } -// 清除临时数据 -async function confirmDelTemp(): Promise { - const res = await showConfirm({ - title: "确认清除临时数据吗?", - }); - if (!res) { - showSnackbar({ - color: "grey", - text: "已取消清除临时数据", - }); - return; - } - await fs.removeDir("tempData", { - dir: fs.BaseDirectory.AppLocalData, - recursive: true, - }); - await fs.createDir("tempData", { dir: fs.BaseDirectory.AppLocalData }); - showSnackbar({ text: "临时数据已删除!" }); -} - // 恢复默认设置 async function confirmResetApp(): Promise { const res = await showConfirm({