fix: fix bugs

This commit is contained in:
2026-01-26 04:29:38 +08:00
parent 2db3868fcf
commit e8e2765c27

View File

@@ -21,6 +21,7 @@ export const openLink = (path: string, target: string = '_self') => {
window.open(path, target); window.open(path, target);
return; return;
} }
const url = wrapBasename(path); const url = new URL(path, window.location.origin);
window.open(url, target); url.pathname = wrapBasename(url.pathname);
window.open(url.toString(), target);
} }