refactor: 移除developer目录,统一使用admin角色;重命名developer-sidebar为admin-sidebar;修复路由守卫和header中的developer引用

This commit is contained in:
2026-05-01 12:18:58 +08:00
parent 9563c8fad6
commit c0edb32614
136 changed files with 26 additions and 26221 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ export function createRouterGuard(router: Router) {
}
}
const requiresAuth = to.path.startsWith('/developer') || to.path.startsWith('/agent')
const requiresAuth = to.path.startsWith('/admin') || 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 '/developer'
return '/admin'
}
})
}