From cfc8f3c8e0d2aecd581b4a71a1e9bcc0157047ec Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 8 Jan 2025 16:01:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(AppSign):BUG=20525=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在登录接口返回数据中增加错误信息展示 - 使用 $message.error 方法显示错误提示 --- project/xumu/AppSign/AppSign.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project/xumu/AppSign/AppSign.vue b/project/xumu/AppSign/AppSign.vue index 5468c974..d83123c9 100644 --- a/project/xumu/AppSign/AppSign.vue +++ b/project/xumu/AppSign/AppSign.vue @@ -95,6 +95,8 @@ export default { if (data?.access_token) { this.setToken([data.token_type, data.access_token].join(" ")) this.handleGotoHome() + } else { + this.$message.error(data?.msg || "登录失败!") } }, handleGotoHome() {