From 966e90498dccb551c013034c3f758259b4594e7a Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Mon, 23 Sep 2024 10:16:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8C=89=E9=92=AE=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trials/trials-myinfo/account.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/trials/trials-myinfo/account.vue b/src/views/trials/trials-myinfo/account.vue index 09310390..bf5c9b35 100644 --- a/src/views/trials/trials-myinfo/account.vue +++ b/src/views/trials/trials-myinfo/account.vue @@ -10,12 +10,12 @@ label-width="100px" :rules="rule" :model="userForm" + ref="userFormRef" > {{ user.UserName }} @@ -189,6 +189,8 @@ export default { }, async setNewUserName() { try { + let validate = await this.$refs.userFormRef.validate() + if (!validate) return false let confirm = await this.$confirm( this.$t('trials:trials-myInfo:confirmMessage:updateUserName'), {