From 21ddc9ec1b1b76d2ce20e512328e65acaf1af2bf Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期一, 16 一月 2023 10:35:15 +0800
Subject: [PATCH] 廊坊代码更新

---
 src/store/index.js |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/src/store/index.js b/src/store/index.js
index 7c4d991..66f50f9 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -50,6 +50,7 @@
     loading:false,
     pipelineEntity:[],
     reporturl:null,
+   layerMnage:false,
   },
   mutations: {
     //鑾峰彇鏉冮檺鍚堥泦
@@ -92,16 +93,16 @@
     },
     /* 鎵撳紑Loading */
     START_LOADING(state, msg) {
-      state.loadingInstance = Loading.service({
-        lock: true,
-        text: msg ? msg : '鍔犺浇涓�...',
-        background: 'rgba(0, 0, 0, 0.7)',
-      });
+      // state.loadingInstance = Loading.service({
+      //   lock: true,
+      //   text: msg ? msg : '鍔犺浇涓�...',
+      //   background: 'rgba(0, 0, 0, 0.7)',
+      // });
     },
     /* 鍏抽棴loading */
 
     CLOSE_LOADING(state) {
-      state.loadingInstance.close();
+      // state.loadingInstance.close();
     },
     /* 鏇存柊璇锋眰绾跨▼姹� */
     UPDATE_API_COUNT(state, handle) {
@@ -142,12 +143,15 @@
         login(data)
           .then((response) => {
             const data = response;
+            
             if (data.code !== 200) {
-              return Message({
-                message: data.msg,
-                type: 'error',
-                duration: 5 * 1000,
-              });
+              resolve(data);
+              return
+              // return Message({
+              //   message: data.msg,
+              //   type: 'error',
+              //   duration: 5 * 1000,
+              // });
             }
             commit('SET_UNAME', data.result.uname);
             commit('SET_TOKEN', data.result.token);

--
Gitblit v1.9.3