版本变更V3.29体验优化
This commit is contained in:
@ -80,12 +80,9 @@ const onLogin = async () => {
|
||||
const success = await userStore.handleLogin(loginForm)
|
||||
|
||||
if (success) {
|
||||
// [新增] 2. 登录成功后,立即拉取当前用户的权限字典
|
||||
// 这样进入 Dashboard 时,所有按钮/列的显示状态就已经确定了
|
||||
await permissionStore.loadPermissions()
|
||||
|
||||
// 3. 跳转
|
||||
router.push('/dashboard')
|
||||
// 直接跳转并触发完整页面重载,干净重置 Dify Embed Token
|
||||
window.location.href = '/dashboard'
|
||||
} else {
|
||||
// 失败(业务逻辑拒绝):弹出模态框
|
||||
showLoginFailAlert('用户名或密码错误')
|
||||
|
||||
Reference in New Issue
Block a user