From 63742b975a6d070fe5f302c7f878cd55bfb34817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B2=AB=E8=8A=B1=E7=81=ABzzz=F0=9F=8C=99?= Date: Wed, 25 Dec 2024 23:10:47 +0800 Subject: [PATCH] [*] Fix --- src/views/auth/LoginView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/auth/LoginView.vue b/src/views/auth/LoginView.vue index 154944f..f31e50c 100644 --- a/src/views/auth/LoginView.vue +++ b/src/views/auth/LoginView.vue @@ -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}`)