From 8afb1cbbeeccc488b43d33da8ca83f4e3ff1f2b4 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 08 Feb 2023 16:50:20 +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