版本变更V3.29体验优化

This commit is contained in:
dxc
2026-05-20 09:09:33 +08:00
parent 6d044b234c
commit 621431dcb9
4 changed files with 62 additions and 26 deletions

View File

@ -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('用户名或密码错误')