修改接车图片不必传
This commit is contained in:
parent
496a527ec1
commit
cd7cc4ebc5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user