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 = () => { }) } - +