Vanessa 2023-12-09 12:09:46 +08:00
parent e14ca5799b
commit 73505073e6
12 changed files with 42 additions and 59 deletions

View file

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