diff --git a/unilife-frontend/src/router/index.ts b/unilife-frontend/src/router/index.ts index 0a9eb05..b75f90a 100644 --- a/unilife-frontend/src/router/index.ts +++ b/unilife-frontend/src/router/index.ts @@ -84,7 +84,7 @@ router.beforeEach((to) => { return '/login' } - if ((to.name === 'login' || to.name === 'register') && userStore.isLoggedIn) { + if (to.name === 'login' && userStore.isLoggedIn) { return '/forum' } }) diff --git a/unilife-frontend/src/types/index.ts b/unilife-frontend/src/types/index.ts index f8e526a..8b03941 100644 --- a/unilife-frontend/src/types/index.ts +++ b/unilife-frontend/src/types/index.ts @@ -31,7 +31,7 @@ export interface User { } export interface LoginRequest { - email: string + account: string // 支持用户名或邮箱 password: string } diff --git a/unilife-frontend/src/views/HomeView.vue b/unilife-frontend/src/views/HomeView.vue index fd4c478..272e07c 100644 --- a/unilife-frontend/src/views/HomeView.vue +++ b/unilife-frontend/src/views/HomeView.vue @@ -52,24 +52,6 @@ 了解更多 - - -
为大学生打造的综合性生活平台
- -