mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 18:24:21 +01:00
This commit is contained in:
parent
b0229e6c7a
commit
39e21df87e
4 changed files with 30 additions and 26 deletions
|
|
@ -27,8 +27,8 @@ export const init = (app: App) => {
|
|||
afterLayout(app);
|
||||
return;
|
||||
}
|
||||
const tabJSON = JSON.parse(getSearch("json"));
|
||||
tabJSON.active = true;
|
||||
const tabsJSON = JSON.parse(getSearch("json"));
|
||||
tabsJSON[tabsJSON.length - 1].active = true;
|
||||
JSONToCenter(app, {
|
||||
direction: "lr",
|
||||
resize: "lr",
|
||||
|
|
@ -37,7 +37,7 @@ export const init = (app: App) => {
|
|||
instance: "Layout",
|
||||
children: [{
|
||||
instance: "Wnd",
|
||||
children: [tabJSON]
|
||||
children: tabsJSON
|
||||
}]
|
||||
});
|
||||
window.siyuan.layout.centerLayout = window.siyuan.layout.layout;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue