🎨 alt+点击两次报错

This commit is contained in:
Vanessa 2024-12-16 17:45:49 +08:00
parent b439cd66f7
commit 3bd2debf4c

View file

@ -276,7 +276,7 @@ export const openFile = async (options: IOpenFileOptions) => {
}
wnd.showHeading();
if (options.afterOpen) {
options.afterOpen(createdTab.model);
options.afterOpen(createdTab ? createdTab.model : undefined);
}
return createdTab;
}