From 93df543bb391ee238c55d867b219f045f938a3fd Mon Sep 17 00:00:00 2001 From: keqingmoe Date: Fri, 27 Dec 2024 18:03:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B3=A8=E5=86=8C=E5=92=8C?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E8=A1=A8=E5=8D=95=EF=BC=8C=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97=EF=BC=8C=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C=EF=BC=9B=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=9D=A2=E6=9D=BF=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E5=8C=85=E6=8B=AC=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E5=92=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=B4=A6=E5=8F=B7=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/Auth.vue | 30 +++---- ui/src/components/LoginForm.vue | 46 +++++------ ui/src/components/RegisterForm.vue | 8 +- ui/src/components/RepasswdDialog.vue | 112 +++++++++++++++++++++++++++ ui/src/components/UserPanel.vue | 53 ++++++++++++- 5 files changed, 197 insertions(+), 52 deletions(-) create mode 100644 ui/src/components/RepasswdDialog.vue 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 @@