feat: 新增页面

This commit is contained in:
duanshuwen
2025-12-07 14:54:52 +08:00
parent da7024747a
commit 14d916187c
15 changed files with 201 additions and 101 deletions

View File

@@ -9,7 +9,7 @@ const routes = [
{
path: "/browser",
name: "Browser",
component: () => import("@/views/browser/BrowserLayout.vue"),
component: () => import("@/browser/BrowserLayout.vue"),
meta: { requiresAuth: true },
},
{
@@ -43,8 +43,8 @@ router.beforeEach((to: any, from: any, next: any) => {
return;
}
if (token && to.path !== "/rate") {
next({ path: "/rate" });
if (token && to.path !== "/home") {
next({ path: "/home" });
return;
}