From de9a04cf9c49ca702fbfe3bb04d5ccd18e6d4c4d Mon Sep 17 00:00:00 2001 From: Swift Date: Mon, 26 Feb 2024 18:04:48 +0330 Subject: [PATCH] Update index.vue --- pages/survey/index.vue | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pages/survey/index.vue b/pages/survey/index.vue index 3592b10..7a96519 100644 --- a/pages/survey/index.vue +++ b/pages/survey/index.vue @@ -281,10 +281,22 @@ export default { if (this.disabledBtn) return this.$axios.$post('/api/public/survey', { ...this.survey }).then(res => { this.$message.success('با تشکر از زمانی که گذاشتید، نظر شما ثبت شد.') - if (this.code) { - return this.$router.push('/') - } - this.survey = this.initForm() + + this.survey = { + purchasedProduct: 0, + guaranteeWorkFlow: 0, + employeeResponsibility: 0, + serviceQuality: 0, + serviceTime: 0, + repairQuality: 0, + coast: 0, + code: '', + fullName: '', + national: '', + phoneNumber: '', + email: '', + description: '' + } }).catch((error)=>{ if (error.response.status === 422) { this.validation = error.response.data.validation