mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 05:28:07 +01:00
This commit is contained in:
parent
e14ca5799b
commit
73505073e6
12 changed files with 42 additions and 59 deletions
|
|
@ -277,7 +277,7 @@ export const openFile = async (options: IOpenFileOptions) => {
|
|||
createdTab = newTab(options);
|
||||
wnd.addTab(createdTab);
|
||||
if (unUpdateTab && options.removeCurrentTab) {
|
||||
wnd.removeTab(unUpdateTab.id, false, true, false);
|
||||
wnd.removeTab(unUpdateTab.id, false, false);
|
||||
}
|
||||
} else {
|
||||
createdTab = newTab(options);
|
||||
|
|
@ -306,7 +306,6 @@ const getUnInitTab = (options: IOpenFileOptions) => {
|
|||
} else {
|
||||
initObj.action = options.action;
|
||||
}
|
||||
delete initObj.scrollAttr;
|
||||
item.headElement.setAttribute("data-initdata", JSON.stringify(initObj));
|
||||
item.parent.switchTab(item.headElement);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue