Skip to content

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

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

Vanessaf261888c555c
diff --git a/app/src/menus/workspace.ts b/app/src/menus/workspace.ts
index 4a875e5fcf..a7865eb16a 100644
--- a/app/src/menus/workspace.ts
+++ b/app/src/menus/workspace.ts
@@ -190,7 +190,11 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {
if (hasClosestByClassName(event.target as Element, "b3-menu__action")) {
event.preventDefault();
event.stopPropagation();
- fetchPost("/api/system/removeWorkspaceDir", {path: item.path});
+ fetchPost("/api/system/removeWorkspaceDir", {path: item.path}, () => {
+ confirmDialog(window.siyuan.languages.deleteOpConfirm, window.siyuan.languages.removeWorkspacePhysically, () => {
+ fetchPost("/api/system/removeWorkspaceDirPhysically", {path: item.path});
+ });
+ });
return;
}
confirmDialog(window.siyuan.languages.confirm, `${pathPosix().basename(window.siyuan.config.system.workspaceDir)} -> ${pathPosix().basename(item.path)}?`, () => {