fix: 应用管理页面从卡片布局改为表格布局
This commit is contained in:
@@ -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'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user