Skip to content

Commit

Permalink
[*] 修复登录失败错误判定为成功
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Sep 15, 2024
1 parent be691df commit 27a845f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async function login() {
ldb.error()
return
}
if (rs.status === 200) {
if (rs.status === 200 && rs.data.status === 200) {
message.success(rs.data.username + ',欢迎回来!')
userData.commit('set_token', rs.data.token)
// console.log(res.data)
Expand Down

0 comments on commit 27a845f

Please sign in to comment.