From fbdc6aec1f75e1bd8e4b95904d7fe0df05d07398 Mon Sep 17 00:00:00 2001 From: huxin02 Date: Fri, 30 May 2025 19:12:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0UI=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/views/big-screen/bigdata.vue | 2 +- client/src/views/main/index.vue | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) 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 {