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(() => {