修改接车图片不必传

This commit is contained in:
xiaofajia 2024-11-06 09:33:02 +08:00
parent 496a527ec1
commit cd7cc4ebc5

View File

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