fix UI
This commit is contained in:
@@ -68,6 +68,10 @@ function goSignup() {
|
|||||||
toggleLogin(false)
|
toggleLogin(false)
|
||||||
toggleSignup(true)
|
toggleSignup(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
msg.value = ""
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -115,14 +119,21 @@ function goSignup() {
|
|||||||
</n-form-item>
|
</n-form-item>
|
||||||
<n-alert v-if="msg" type="error" :show-icon="false"> {{ msg }}</n-alert>
|
<n-alert v-if="msg" type="error" :show-icon="false"> {{ msg }}</n-alert>
|
||||||
<n-form-item>
|
<n-form-item>
|
||||||
<n-space>
|
<n-flex style="width: 100%">
|
||||||
<n-button type="primary" :loading="isLoading" @click="submit">
|
<n-button
|
||||||
|
type="primary"
|
||||||
|
:loading="isLoading"
|
||||||
|
@click="submit"
|
||||||
|
:style="{
|
||||||
|
flex: configStore.config?.allow_register ? '0 0 auto' : '1',
|
||||||
|
}"
|
||||||
|
>
|
||||||
登录
|
登录
|
||||||
</n-button>
|
</n-button>
|
||||||
<n-button v-if="configStore.config?.allow_register" @click="goSignup">
|
<n-button v-if="configStore.config?.allow_register" @click="goSignup">
|
||||||
没有账号?立即注册
|
没有账号?立即注册
|
||||||
</n-button>
|
</n-button>
|
||||||
</n-space>
|
</n-flex>
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
</n-form>
|
</n-form>
|
||||||
</n-modal>
|
</n-modal>
|
||||||
|
|||||||
Reference in New Issue
Block a user