From 9bf686bbfe65536fea2d18c178792a8700a97c67 Mon Sep 17 00:00:00 2001 From: Swift Date: Sat, 24 Feb 2024 18:43:19 +0330 Subject: [PATCH] fix --- pages/admin/surveys/public/_survey.vue | 2 +- pages/admin/surveys/public/index.vue | 6 +++--- pages/survey/index.vue | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pages/admin/surveys/public/_survey.vue b/pages/admin/surveys/public/_survey.vue index 758ab55..b4dd3d3 100644 --- a/pages/admin/surveys/public/_survey.vue +++ b/pages/admin/surveys/public/_survey.vue @@ -2,7 +2,7 @@
{{ title }} - برگشت به صفحه قبل + برگشت به صفحه قبل diff --git a/pages/admin/surveys/public/index.vue b/pages/admin/surveys/public/index.vue index 544ae9d..8618b45 100644 --- a/pages/admin/surveys/public/index.vue +++ b/pages/admin/surveys/public/index.vue @@ -28,9 +28,9 @@ diff --git a/pages/survey/index.vue b/pages/survey/index.vue index 65a1c9a..3592b10 100644 --- a/pages/survey/index.vue +++ b/pages/survey/index.vue @@ -285,6 +285,12 @@ export default { return this.$router.push('/') } this.survey = this.initForm() + }).catch((error)=>{ + if (error.response.status === 422) { + this.validation = error.response.data.validation + this.hasValidationError = true + this.waiting = false + } }) } }