Skip to content

Commit 918e914

Browse files
author
piexlMax(奇淼
committed
fix: 修复登录失败两次报错的bug
1 parent 2bf3f88 commit 918e914

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: web/src/pinia/modules/user.js

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export const useUserStore = defineStore('user', () => {
7171
const res = await login(loginInfo)
7272

7373
if (res.code !== 0) {
74-
ElMessage.error(res.message || '登录失败')
7574
return false
7675
}
7776
// 登陆成功,设置用户信息和权限相关信息

0 commit comments

Comments
 (0)