diff --git a/ui/src/components/Auth.vue b/ui/src/components/Auth.vue index 47ef7c2..003e4ca 100644 --- a/ui/src/components/Auth.vue +++ b/ui/src/components/Auth.vue @@ -1,16 +1,19 @@ @@ -18,14 +21,12 @@ import { useAuthStore } from '@/store/auth'; import LoginForm from './LoginForm.vue'; import { ref } from 'vue'; -import { jwtDecode, type JwtPayload } from 'jwt-decode'; import RegisterForm from './RegisterForm.vue'; import UserInfo from './UserPanel.vue'; const loginMode = ref(0); const authStore = useAuthStore(); -const token = ref(authStore.token); @@ -35,6 +36,5 @@ const token = ref(authStore.token); justify-content: center; align-items: center; height: 100vh; - /* 设置容器高度为视口高度 */ } \ No newline at end of file diff --git a/ui/src/components/LoginForm.vue b/ui/src/components/LoginForm.vue index 88b3685..e2a5554 100644 --- a/ui/src/components/LoginForm.vue +++ b/ui/src/components/LoginForm.vue @@ -1,41 +1,32 @@