From 3bcfeff65d693019c4accaee91d028800c439e62 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 1 May 2026 09:10:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BB=8E=E5=8D=A1=E7=89=87=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E8=A1=A8=E6=A0=BC=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/admin/applications.vue | 190 ++++++++++++---------- frontend/src/router/guard/index.ts | 4 +- 2 files changed, 103 insertions(+), 91 deletions(-) diff --git a/frontend/src/pages/admin/applications.vue b/frontend/src/pages/admin/applications.vue index 0d6d131..c4282c6 100644 --- a/frontend/src/pages/admin/applications.vue +++ b/frontend/src/pages/admin/applications.vue @@ -1,27 +1,29 @@ diff --git a/frontend/src/router/guard/index.ts b/frontend/src/router/guard/index.ts index 9e702c5..85e38cb 100644 --- a/frontend/src/router/guard/index.ts +++ b/frontend/src/router/guard/index.ts @@ -15,7 +15,7 @@ export function createRouterGuard(router: Router) { } } - const requiresAuth = to.path.startsWith('/admin') || to.path.startsWith('/agent') + const requiresAuth = to.path.startsWith('/developer') || to.path.startsWith('/agent') const isAuthPage = to.path === '/login' || to.path === '/register' if (requiresAuth && !token) { @@ -30,7 +30,7 @@ export function createRouterGuard(router: Router) { if (user.role === 'agent' || user.parent_agent_id) { return '/agent' } - return '/admin' + return '/developer' } }) }