Vanessa 2023-01-05 19:49:34 +08:00
parent 43cc09af8d
commit 6525748398

View file

@ -479,7 +479,9 @@ ${accountHTML}
} else if (target.getAttribute("data-type") === "remove") {
const p = target.parentElement.getAttribute("data-path");
confirmDialog("⚠️ " + window.siyuan.languages.remove + " " + pathPosix().basename(p), window.siyuan.languages.removeWorkspaceTip, () => {
fetchPost("/api/system/removeWorkspaceDir", {path: p});
fetchPost("/api/system/removeWorkspaceDir", {path: p}, () => {
genWorkspace(workspaceDirElement);
});
});
event.preventDefault();
event.stopPropagation();