diff --git a/frontend/src/business/components/settings/personal/PersonSetting.vue b/frontend/src/business/components/settings/personal/PersonSetting.vue index d1428af35d..9ce17e1923 100644 --- a/frontend/src/business/components/settings/personal/PersonSetting.vue +++ b/frontend/src/business/components/settings/personal/PersonSetting.vue @@ -163,8 +163,8 @@ this.editPasswordVisible = true; }, updateUser(updateUserForm) { - this.$refs[updateUserForm].validate(valide => { - if (valide) { + this.$refs[updateUserForm].validate(valid => { + if (valid) { this.result = this.$post(this.updatePath, this.form, response => { this.$success(this.$t('commons.modify_success')); localStorage.setItem(TokenKey, JSON.stringify(response.data)); @@ -178,8 +178,8 @@ }) }, updatePassword(editPasswordForm) { - this.$refs[editPasswordForm].validate(valide => { - if (valide) { + this.$refs[editPasswordForm].validate(valid => { + if (valid) { this.result = this.$post(this.updatePasswordPath, this.ruleForm, response => { this.$success(this.$t('commons.modify_success')); this.editPasswordVisible = false; diff --git a/frontend/src/business/components/settings/system/SystemWorkspace.vue b/frontend/src/business/components/settings/system/SystemWorkspace.vue index b73a21655c..03268cdf60 100644 --- a/frontend/src/business/components/settings/system/SystemWorkspace.vue +++ b/frontend/src/business/components/settings/system/SystemWorkspace.vue @@ -290,8 +290,8 @@ }) }, updateWorkspace(updateForm) { - this.$refs[updateForm].validate(valide => { - if (valide) { + this.$refs[updateForm].validate(valid => { + if (valid) { this.result = this.$post("/workspace/special/update", this.form, () => { this.$success(this.$t('commons.modify_success')); this.dialogWsUpdateVisible = false; diff --git a/frontend/src/business/components/settings/system/TestResourcePool.vue b/frontend/src/business/components/settings/system/TestResourcePool.vue index d769dd840e..056514f361 100644 --- a/frontend/src/business/components/settings/system/TestResourcePool.vue +++ b/frontend/src/business/components/settings/system/TestResourcePool.vue @@ -350,8 +350,8 @@ if (this.result.loading) { return; } - this.$refs[createTestResourcePoolForm].validate(valide => { - if (valide) { + this.$refs[createTestResourcePoolForm].validate(valid => { + if (valid) { let vri = this.validateResourceInfo(); if (vri.validate) { this.convertSubmitResources(); @@ -389,8 +389,8 @@ if (this.result.loading) { return; } - this.$refs[updateTestResourcePoolForm].validate(valide => { - if (valide) { + this.$refs[updateTestResourcePoolForm].validate(valid => { + if (valid) { let vri = this.validateResourceInfo(); if (vri.validate) { this.convertSubmitResources(); diff --git a/frontend/src/business/components/settings/system/User.vue b/frontend/src/business/components/settings/system/User.vue index 8897546460..9d48cee4c4 100644 --- a/frontend/src/business/components/settings/system/User.vue +++ b/frontend/src/business/components/settings/system/User.vue @@ -255,8 +255,8 @@ }) }, editUserPassword(editPasswordForm){ - this.$refs[editPasswordForm].validate(valide=>{ - if(valide){ + this.$refs[editPasswordForm].validate(valid=>{ + if(valid){ this.result = this.$post(this.editPasswordPath, this.ruleForm, response => { this.$success(this.$t('commons.modify_success')); this.editPasswordVisible = false;