mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 02:50:58 +08:00
This commit is contained in:
parent
c22ae35a29
commit
ddb214b1e8
@ -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…
Reference in New Issue
Block a user