support sub path

This commit is contained in:
MaysWind
2025-03-04 23:39:16 +08:00
parent e83b959930
commit 872639fefa
4 changed files with 24 additions and 11 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ function isMobileDevice(): boolean {
function navigate(type: string): void {
if (__EZBOOKKEEPING_IS_PRODUCTION__) {
window.location.replace(`${type}/`);
window.location.replace(`${type}#/`);
} else {
window.location.replace(`${type}.html`);
window.location.replace(`${type}.html#/`);
}
}