feat(AppSign):BUG 525 添加登录失败错误提示

- 在登录接口返回数据中增加错误信息展示
- 使用 $message.error 方法显示错误提示
This commit is contained in:
aixianling
2025-01-08 16:01:46 +08:00
parent 3f26b8b6df
commit cfc8f3c8e0

View File

@@ -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() {