From e9efd98597ac0326e0411af19ac931cd4af19bf0 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 11 Jul 2024 14:44:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/login/index.vue | 65 ++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/ui/src/views/login/index.vue b/ui/src/views/login/index.vue index 5a7c78ed8..4b50cd51e 100644 --- a/ui/src/views/login/index.vue +++ b/ui/src/views/login/index.vue @@ -1,7 +1,7 @@ @@ -84,6 +105,17 @@ const rules = ref>({ }) const loginFormRef = ref() +const loginMode = ref('') + +function changeMode(val: string) { + loginMode.value = val || '' + loginForm.value = { + username: '', + password: '' + } + loginFormRef.value?.clearValidate() +} + const login = () => { loginFormRef.value?.validate().then(() => { loading.value = true @@ -96,4 +128,33 @@ const login = () => { }) } - +