Vanessa 2023-04-28 19:59:14 +08:00
parent a7c617dac4
commit 21fa56e882

View File

@ -62,6 +62,10 @@ export const openFileById = async (options: {
};
export const openAsset = (assetPath: string, page: number | string, position?: string) => {
const suffix = pathPosix().extname(assetPath.split("?page")[0]);
if (!Constants.SIYUAN_ASSETS_EXTS.includes(suffix)) {
return;
}
openFile({
assetPath,
page,