From 1faa84fdfbc860e6b1f979221c1849c45fd08ed7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 8 Sep 2023 16:07:38 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9134 --- app/src/mobile/settings/about.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/mobile/settings/about.ts b/app/src/mobile/settings/about.ts index 95b1b3384..c4a8d96f6 100644 --- a/app/src/mobile/settings/about.ts +++ b/app/src/mobile/settings/about.ts @@ -318,8 +318,12 @@ export const initAbout = () => { event.stopPropagation(); break; } else if (target.getAttribute("data-type") === "remove") { - fetchPost("/api/system/removeWorkspaceDir", {path: target.parentElement.getAttribute("data-path")}, () => { + const removePath = target.parentElement.getAttribute("data-path"); + fetchPost("/api/system/removeWorkspaceDir", {path: removePath}, () => { genWorkspace(workspaceDirElement); + confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeWorkspacePhysically, () => { + fetchPost("/api/system/removeWorkspaceDirPhysically", {path: removePath}); + }); }); event.preventDefault(); event.stopPropagation();