From 464459faf5761b75f5081edada8e212e78603b0d Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Sat, 13 Aug 2022 18:19:47 +0800 Subject: [PATCH] update ant design vue version --- frontend/package.json | 2 +- frontend/src/version.json | 2 +- frontend/src/views/other/Login.vue | 8 ++++++-- frontend/version.json | 2 +- frontend/yarn.lock | 8 ++++---- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index a041b212..29ab7565 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@ant-design/icons-vue": "^6.1.0", - "ant-design-vue": "^3.2.10", + "ant-design-vue": "^3.2.11", "apexcharts": "^3.35.4", "axios": "^0.27.2", "dayjs": "^1.11.4", diff --git a/frontend/src/version.json b/frontend/src/version.json index 2a2dafe3..fade7096 100644 --- a/frontend/src/version.json +++ b/frontend/src/version.json @@ -1 +1 @@ -{"version":"1.5.0","build_id":41,"total_build":111} \ No newline at end of file +{"version":"1.5.0","build_id":43,"total_build":113} \ No newline at end of file diff --git a/frontend/src/views/other/Login.vue b/frontend/src/views/other/Login.vue index cd42c965..049a9446 100644 --- a/frontend/src/views/other/Login.vue +++ b/frontend/src/views/other/Login.vue @@ -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() +}) +