From 62f9372dd023cae416cf2e3046994dcdf3e26e9c Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 04 Feb 2023 17:08:01 +0800
Subject: [PATCH] 登录更改

---
 src/store/modules/user.js |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 6266f04..89809fd 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-01-30 11:52:22
+ * @LastEditTime: 2023-02-04 17:04:35
  * @FilePath: \srs-police-affairs\src\store\modules\user.js
  * @Description: 
  * 
@@ -33,13 +33,11 @@
                 )
                     .then((res) => {
                         const data = res.data
-                        if (data.error_description) {
+                        if (res.status != 200) {
                             Message({
-                                message: data.error_description,
+                                message: '系统异常,请联系管理员',
                                 type: "error",
                             })
-                            //跳转首页
-                            this.$router.push({ path: "/login" })
                         } else {
                             commit("SET_TOKEN", data.access_token)
                             commit('SET_USER_INFO', data)

--
Gitblit v1.9.3