feat: 登录默认页改为我的工作台
This commit is contained in:
@@ -62,7 +62,7 @@ async function handleLogin() {
|
||||
localStorage.setItem('cma_user', JSON.stringify(res.user))
|
||||
localStorage.setItem('cma_entity_id', String(res.entity_id ?? res.user?.entity_id ?? 1))
|
||||
localStorage.setItem('cma_entity_name', res.entity_short_name || res.entity_name || '')
|
||||
router.push('/dashboard')
|
||||
router.push('/my-dashboard')
|
||||
} catch (e: any) {
|
||||
ElMessage.error(e?.response?.data?.detail || '登录失败')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user