统一角色体系为admin/agent/user,修复代理查询角色错误,添加语言切换和明暗切换
This commit is contained in:
@@ -38,9 +38,7 @@ async function handleLogin() {
|
||||
|
||||
toast.success('登录成功')
|
||||
|
||||
const isAgent = data.user.role === 'agent' || data.user.parent_agent_id
|
||||
|
||||
if (isAgent) {
|
||||
if (data.user.role === 'agent' || data.user.parent_agent_id) {
|
||||
router.push('/agent')
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user