mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🚨
This commit is contained in:
parent
89c93f8ce8
commit
2474db3ab8
16 changed files with 38 additions and 40 deletions
|
|
@ -645,10 +645,10 @@ const initAbout = () => {
|
|||
break;
|
||||
} else if (target.id === "openWorkspace") {
|
||||
fetchPost("/api/system/getMobileWorkspaces", {}, (response) => {
|
||||
let selectHTML = ""
|
||||
let selectHTML = "";
|
||||
response.data.forEach((item: string, index: number) => {
|
||||
selectHTML += `<option value="${item}"${index === 0 ? ' selected="selected"' : ""}>${pathPosix().basename(item)}</option>`
|
||||
})
|
||||
selectHTML += `<option value="${item}"${index === 0 ? ' selected="selected"' : ""}>${pathPosix().basename(item)}</option>`;
|
||||
});
|
||||
const openWorkspaceDialog = new Dialog({
|
||||
title: window.siyuan.languages.openBy,
|
||||
content: `<div class="b3-dialog__content">
|
||||
|
|
@ -678,7 +678,7 @@ const initAbout = () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
})
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
|
@ -746,4 +746,4 @@ const initAbout = () => {
|
|||
exitSiYuan();
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue