diff --git a/src/components/config/tc-dataDir.vue b/src/components/config/tc-dataDir.vue
index 45d2004d..d56621c5 100644
--- a/src/components/config/tc-dataDir.vue
+++ b/src/components/config/tc-dataDir.vue
@@ -13,7 +13,7 @@
>mdi-pencil
- mdi-folder-open
@@ -48,12 +48,12 @@
mdi-delete
mdi-folder-open
+ >mdi-folder-open
+
mdi-content-copy
+ >mdi-content-copy
+
@@ -74,10 +74,7 @@ const appStore = useAppStore();
async function confirmCUD(): Promise {
const oriDir = appStore.userDir;
- const check = await showConfirm({
- title: "确认修改用户数据路径吗?",
- text: "祈愿数据需修改后重新手动备份!",
- });
+ const check = await showConfirm({ title: "确认修改用户数据路径吗?" });
if (!check) {
showSnackbar({
color: "cancel",
@@ -107,11 +104,21 @@ async function confirmCUD(): Promise {
appStore.userDir = dir;
await TGSqlite.saveAppData("userDir", dir);
await backUpUserData(dir);
- await remove(oriDir, { recursive: true });
showSnackbar({
- text: "已重新备份数据!即将刷新页面!",
- timeout: 3000,
+ text: "已重新备份数据!",
+ color: "success",
+ });
+ const confirm = await showConfirm({
+ title: "是否删除原用户数据目录?",
+ text: "删除后不可恢复!",
});
+ if (confirm) {
+ await remove(oriDir, { recursive: true });
+ showSnackbar({
+ text: "已删除原用户数据目录!",
+ color: "success",
+ });
+ }
setTimeout(() => {
window.location.reload();
}, 4000);