@@ -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不存在')
@@ -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;
@@ -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>
@@ -19,7 +19,7 @@
<ul class="two">
- <p><span class="num text-blue">{{fsiteCount.normalCount}}</span> 个</p>
+ <p><span class="num text-blue">{{fsiteCount.count}}</span> 个</p>
<p>总站点数</p>
@@ -72,7 +72,7 @@ export default {
left: "0%",
right: "0%",
bottom: "0%",
- top: "16%",
+ top: "21%",
containLabel: true,
},