diff --git a/client/src/views/big-screen/bigdata.vue b/client/src/views/big-screen/bigdata.vue index fb01148..883d3fb 100644 --- a/client/src/views/big-screen/bigdata.vue +++ b/client/src/views/big-screen/bigdata.vue @@ -11,7 +11,7 @@
-
返回首页
+
返回
diff --git a/client/src/views/main/index.vue b/client/src/views/main/index.vue index 615fc30..2e8ee33 100644 --- a/client/src/views/main/index.vue +++ b/client/src/views/main/index.vue @@ -26,25 +26,6 @@ } } - const handleUserInfo = async () => { - try { - if (!userStore.token) { - await handleLogin() - // 忘记写return导致后面的业务依然在运行。 - return - } - // 获取用户信息并持久化到浏览器 - await userStore.getUserInfo() - // 在url没有hash url的时候路由跳转首页 - const hashUrl = window.location.hash.slice(1) - if (hashUrl && hashUrl === '/') { - //route.push('/svi/index') - route.push('/big-screen') - } - } catch (error) { - handleLogin() - } - } const handleLogin = async () => { try {