https://github.com/siyuan-note/siyuan/issues/7353
This commit is contained in:
Vanessa 2023-02-12 22:17:20 +08:00
parent f4ef3f3a55
commit 9db94621e9

View file

@ -478,10 +478,11 @@ ${accountHTML}
event.stopPropagation();
break;
} else if (target.getAttribute("data-type") === "remove") {
const p = target.parentElement.getAttribute("data-path");
fetchPost("/api/system/removeWorkspaceDir", {path: p}, () => {
genWorkspace(workspaceDirElement);
});
confirmDialog(window.siyuan.languages.remove, window.siyuan.languages.removeWorkspaceTip, () => {
fetchPost("/api/system/removeWorkspaceDir", {path: target.parentElement.getAttribute("data-path")}, () => {
genWorkspace(workspaceDirElement);
});
})
event.preventDefault();
event.stopPropagation();
break;