This commit is contained in:
Vanessa 2023-02-17 15:46:46 +08:00
parent 89c93f8ce8
commit 2474db3ab8
16 changed files with 38 additions and 40 deletions

View file

@ -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();
});
});
}
};