Vanessa 2025-05-24 17:41:06 +08:00
parent 668e5826e2
commit 8ba7a703ed
5 changed files with 6 additions and 6 deletions

View file

@ -74,7 +74,7 @@ export const openNewWindowById = async (id: string | string[], options: windowOp
export const openAssetNewWindow = (assetPath: string, options: windowOptions = {}) => {
/// #if !BROWSER
const suffix = pathPosix().extname(assetPath.split("?page")[0]);
const suffix = pathPosix().extname(assetPath).split("?")[0];
if (Constants.SIYUAN_ASSETS_EXTS.includes(suffix)) {
let docIcon = "iconPDF";
if (Constants.SIYUAN_ASSETS_IMAGE.includes(suffix)) {