From 93f9b248dd0eecbaa77006e5146c58c831d89d8e Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Mon, 07 Jul 2025 17:12:16 +0800
Subject: [PATCH] style

---
 src/views/my/newindex.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/views/my/newindex.vue b/src/views/my/newindex.vue
index 78df43f..387eafe 100644
--- a/src/views/my/newindex.vue
+++ b/src/views/my/newindex.vue
@@ -131,7 +131,11 @@
   ]
 })
 const onRoute = (path) => {
-  console.log(path)
+  console.log(path, userStore)
+  if (!userStore.userInfo || !userStore.userInfo.token) {
+    router.push('/login')
+    return
+  }
   router.push(path)
 }
 onMounted(() => {

--
Gitblit v1.9.3