From cd7cc4ebc558feea0d0e4b45f09cc68e175081d3 Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Wed, 6 Nov 2024 09:33:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E8=BD=A6=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=B8=8D=E5=BF=85=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/repair/tickets/Components/UserInfo.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/repair/tickets/Components/UserInfo.vue b/src/views/repair/tickets/Components/UserInfo.vue index 518678a..f5475c3 100644 --- a/src/views/repair/tickets/Components/UserInfo.vue +++ b/src/views/repair/tickets/Components/UserInfo.vue @@ -492,15 +492,21 @@ export default { if (count > 0){ return } - if (!this.formData.image){ - this.$modal.msgError("接车图片不能为空") - return - }else{ + if (this.formData.image){ const data = this.formData.image.split(",") this.formData.image = data.map(item => { return item.replace(process.env.VUE_APP_FILE_API, "") }).join(",") } + // if (!this.formData.image){ + // this.$modal.msgError("接车图片不能为空") + // return + // }else{ + // const data = this.formData.image.split(",") + // this.formData.image = data.map(item => { + // return item.replace(process.env.VUE_APP_FILE_API, "") + // }).join(",") + // } await createTickets(this.formData) this.$modal.msgSuccess("新增成功") this.init()