mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -39,6 +39,9 @@ export const openFileById = (options: {
|
||||
lockFile(data.data);
|
||||
return;
|
||||
}
|
||||
if (typeof options.removeCurrentTab === "undefined") {
|
||||
options.removeCurrentTab = true;
|
||||
}
|
||||
openFile({
|
||||
fileName: data.data.rootTitle,
|
||||
rootIcon: data.data.rootIcon,
|
||||
@@ -58,7 +61,8 @@ export const openAsset = (assetPath: string, page: number | string, position?: s
|
||||
openFile({
|
||||
assetPath,
|
||||
page,
|
||||
position
|
||||
position,
|
||||
removeCurrentTab: true
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user