ming 3 years ago
parent
commit
185b3c88e3

+ 1 - 0
src/main.js

@@ -55,6 +55,7 @@ router.beforeEach((to, from, next) => {
     }
     if (to.path !== '/') {
         if (localStorage.getItem('accessToken') === null) {
+            // if (localStorage.getItem('userInfo') === null) {
 
             // 本地存储的accessToken不存在时,跳转至后台登录页
             // alert('本地存储的accessToken不存在')

+ 4 - 1
src/utils/request.js

@@ -26,7 +26,10 @@ const handleCode = (code, msg) => {
             //     type: 'error',
             //     duration: 2 * 1000
             // })
-            router.replace({ path: "/" });
+            router
+            // router.replace({ path: "/" });
+            window.location.href = 'https://wx.ewoogi.com/adminfiv/#/login'
+
             removeToken()
             return;
     }

+ 1 - 1
src/views/home/components/mapStaticTop.vue

@@ -3,7 +3,7 @@
     <ul>
       <li>
         <div>
-          <p><span class="num static">{{fsiteCount.normalCount}}</span></p>
+          <p><span class="num static">{{fsiteCount.count}}</span></p>
           <p>站点总数</p>
         </div>
       </li>

+ 1 - 1
src/views/home/components/statisTop.vue

@@ -19,7 +19,7 @@
     <ul class="two">
       <li>
         <div>
-          <p><span class="num text-blue">{{fsiteCount.normalCount}}</span> 个</p>
+          <p><span class="num text-blue">{{fsiteCount.count}}</span> 个</p>
           <p>总站点数</p>
         </div>
       </li>

+ 1 - 1
src/views/site/components/Overview/alarmingChart.vue

@@ -72,7 +72,7 @@ export default {
           left: "0%",
           right: "0%",
           bottom: "0%",
-          top: "16%",
+          top: "21%",
           containLabel: true,
         },