mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
🎨 打开当前工作空间不允许
This commit is contained in:
parent
7ef46459fe
commit
d00b865b17
1 changed files with 3 additions and 0 deletions
|
|
@ -116,6 +116,9 @@ export const workspaceMenu = (rect: DOMRect) => {
|
|||
|
||||
const openWorkspace = (workspace: string) => {
|
||||
/// #if !BROWSER
|
||||
if (workspace === window.siyuan.config.system.workspaceDir) {
|
||||
return;
|
||||
}
|
||||
fetchPost("/api/system/setWorkspaceDir", {
|
||||
path: workspace
|
||||
}, () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue