Skip to content

Commit

Permalink
[*] Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Dec 25, 2024
1 parent 2e3b9fc commit 63742b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/auth/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
v-model="token"
@error="
(code) => {
if (code.startsWith(200)) {
if (`${code}`.startsWith('200')) {
message.error(`验证失败,状态异常,错误代码: ${code}`)
} else if (code.startsWith(300)) {
} else if (`${code}`.startsWith('300')) {
message.error(`验证失败,当前环境异常,错误代码: ${code}`)
} else if (code.startsWith(600)) {
} else if (`${code}`.startsWith('600')) {
message.error(`验证失败,错误代码: ${code}`)
} else {
message.error(`验证错误,错误代码: ${code}`)
Expand Down

0 comments on commit 63742b9

Please sign in to comment.