Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/9134

Vanessa1faa84fdfbc8
diff --git a/app/src/mobile/settings/about.ts b/app/src/mobile/settings/about.ts
index 95b1b33842..c4a8d96f6b 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();