mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
update
This commit is contained in:
@@ -124,9 +124,7 @@ function onregisterButtonClick(e: MouseEvent) {
|
||||
})
|
||||
})
|
||||
}
|
||||
function onLoginButtonClick(e: MouseEvent) {
|
||||
e.preventDefault()
|
||||
|
||||
function onLoginButtonClick() {
|
||||
formRef.value?.validate().then(async () => {
|
||||
isLoading.value = true
|
||||
await QueryPostAPI<{
|
||||
@@ -178,7 +176,7 @@ function onLoginButtonClick(e: MouseEvent) {
|
||||
<NInput v-model:value="loginModel.account" />
|
||||
</NFormItem>
|
||||
<NFormItem path="password" label="密码">
|
||||
<NInput v-model:value="loginModel.password" type="password" @input="onPasswordInput" @keydown.enter.prevent />
|
||||
<NInput v-model:value="loginModel.password" type="password" @input="onPasswordInput" @keydown.enter="onLoginButtonClick"/>
|
||||
</NFormItem>
|
||||
</NForm>
|
||||
<NSpace vertical justify="center" align="center">
|
||||
|
||||
Reference in New Issue
Block a user