feat: home page optimize

This commit is contained in:
2026-02-02 21:03:52 +08:00
parent e6fbcff21a
commit e9b38b48e9
6 changed files with 81 additions and 12 deletions

13
src/utils/navigator.ts Normal file
View File

@@ -0,0 +1,13 @@
import router from "@/router";
export const navigateTo = (path: string, replace?: boolean = false) => {
if (path.startsWith("http")) {
if (replace) {
window.open(path, "_self");
} else {
window.open(path, "_blank");
}
return;
}
router.push(path);
};