mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
update ant design vue version
This commit is contained in:
parent
0c0594a7ee
commit
464459faf5
5 changed files with 13 additions and 9 deletions
|
@ -4,7 +4,7 @@ import {useUserStore} from '@/pinia'
|
|||
const thisYear = new Date().getFullYear()
|
||||
|
||||
import {LockOutlined, UserOutlined} from '@ant-design/icons-vue'
|
||||
import {reactive, ref} from 'vue'
|
||||
import {reactive, ref, watch} from 'vue'
|
||||
import {useRoute, useRouter} from 'vue-router'
|
||||
import gettext from '@/gettext'
|
||||
import {Form, message} from 'ant-design-vue'
|
||||
|
@ -43,7 +43,7 @@ const rulesRef = reactive({
|
|||
]
|
||||
})
|
||||
|
||||
const {validate, validateInfos} = Form.useForm(modelRef, rulesRef)
|
||||
const {validate, validateInfos, clearValidate} = Form.useForm(modelRef, rulesRef)
|
||||
|
||||
const onSubmit = () => {
|
||||
validate().then(() => {
|
||||
|
@ -65,6 +65,10 @@ if (user.is_login) {
|
|||
router.push(next)
|
||||
}
|
||||
|
||||
watch(() => gettext.current, () => {
|
||||
clearValidate()
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue