From 1391773de30f306c4de90a5c898abc8f3aafcfc1 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 09 Feb 2023 10:41:28 +0800
Subject: [PATCH] 登录问题
---
src/store/modules/user.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 89809fd..f534d72 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2022-12-27 09:33:01
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-02-04 17:04:35
+ * @LastEditTime: 2023-02-09 10:21:05
* @FilePath: \srs-police-affairs\src\store\modules\user.js
* @Description:
*
@@ -33,7 +33,12 @@
)
.then((res) => {
const data = res.data
- if (res.status != 200) {
+ if (data.error_description) {
+ Message({
+ message: data.error_description,
+ type: "error",
+ })
+ } else if (res.status != 200) {
Message({
message: '系统异常,请联系管理员',
type: "error",
--
Gitblit v1.9.3