From f5592f3d3be5118f2bfad729e3e25f6490f10b1e Mon Sep 17 00:00:00 2001 From: Swift Date: Sun, 25 Feb 2024 13:16:28 +0330 Subject: [PATCH] Fix bug --- pages/admin/complaint/_item.vue | 3 ++- pages/admin/complaint/index.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/admin/complaint/_item.vue b/pages/admin/complaint/_item.vue index 02bb5e1..82815b7 100644 --- a/pages/admin/complaint/_item.vue +++ b/pages/admin/complaint/_item.vue @@ -55,7 +55,7 @@
-
+
نام و نام خانوادگی:

{{ complaint?.user?.first_name + " " + complaint?.user?.last_name }}

@@ -107,6 +107,7 @@ export default { this.complaint = res.data this.complete = res.data.complete this.desc = res.data.desc + }) }, diff --git a/pages/admin/complaint/index.vue b/pages/admin/complaint/index.vue index 24cfe27..d49bb5a 100644 --- a/pages/admin/complaint/index.vue +++ b/pages/admin/complaint/index.vue @@ -97,7 +97,7 @@ export default { this.$axios.get('/api/admin/complaint').then(res=>{ this.complaint = res.data - console.log(res.data) + }).catch(err=>{ console.log(err)