mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🎨 桌面端支持同时打开多个工作空间 https://github.com/siyuan-note/siyuan/issues/4567
This commit is contained in:
parent
29c8b67a7d
commit
8487627a15
6 changed files with 8 additions and 2 deletions
|
|
@ -477,8 +477,9 @@ ${accountHTML}
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.getAttribute("data-type") === "remove") {
|
||||
confirmDialog("⚠️ " + window.siyuan.languages.remove, window.siyuan.languages.about8, () => {
|
||||
fetchPost("/api/system/removeWorkspaceDir", {path: target.parentElement.getAttribute("data-path")});
|
||||
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});
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue