diff --git a/src/layout/index.vue b/src/layout/index.vue index bcfdaff..b3bc0b3 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -26,6 +26,7 @@ const setting = settingStore(); const router = useRouter() console.log(setting.title); +user.token ? router.push('/spacePage') : '' const loginFn=()=>{ router.push('/login') }