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'), {