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);
return;
}
const url = wrapBasename(path);
window.open(url, target);
const url = new URL(path, window.location.origin);
url.pathname = wrapBasename(url.pathname);
window.open(url.toString(), target);
}