From d2edd0ae8fb8b6eb5edc1afef838cd2a1e527301 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Thu, 09 Feb 2023 15:05:27 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
---
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