mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
This commit is contained in:
parent
b0229e6c7a
commit
39e21df87e
4 changed files with 30 additions and 26 deletions
|
|
@ -448,7 +448,7 @@ export const bindCardEvent = async (options: {
|
|||
icon: "iconOpenWindow",
|
||||
label: window.siyuan.languages.openByNewWindow,
|
||||
click() {
|
||||
const json = {
|
||||
const json = [{
|
||||
"title": window.siyuan.languages.spaceRepetition,
|
||||
"icon": "iconRiffCard",
|
||||
"instance": "Tab",
|
||||
|
|
@ -461,7 +461,7 @@ export const bindCardEvent = async (options: {
|
|||
"title": options.title
|
||||
}
|
||||
}
|
||||
};
|
||||
}];
|
||||
ipcRenderer.send(Constants.SIYUAN_OPEN_WINDOW, {
|
||||
// 需要 encode, 否则 https://github.com/siyuan-note/siyuan/issues/9343
|
||||
url: `${window.location.protocol}//${window.location.host}/stage/build/app/window.html?v=${Constants.SIYUAN_VERSION}&json=${encodeURIComponent(JSON.stringify(json))}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue