Vanessa 2024-10-25 20:30:43 +08:00
parent b0229e6c7a
commit 39e21df87e
4 changed files with 30 additions and 26 deletions

View file

@ -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;