mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
c22ae35a29
commit
ddb214b1e8
1 changed files with 5 additions and 1 deletions
|
|
@ -39,6 +39,9 @@ export const openFileById = (options: {
|
||||||
lockFile(data.data);
|
lockFile(data.data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (typeof options.removeCurrentTab === "undefined") {
|
||||||
|
options.removeCurrentTab = true;
|
||||||
|
}
|
||||||
openFile({
|
openFile({
|
||||||
fileName: data.data.rootTitle,
|
fileName: data.data.rootTitle,
|
||||||
rootIcon: data.data.rootIcon,
|
rootIcon: data.data.rootIcon,
|
||||||
|
|
@ -58,7 +61,8 @@ export const openAsset = (assetPath: string, page: number | string, position?: s
|
||||||
openFile({
|
openFile({
|
||||||
assetPath,
|
assetPath,
|
||||||
page,
|
page,
|
||||||
position
|
position,
|
||||||
|
removeCurrentTab: true
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue