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()