Commit 49bfbc44 authored by Damon's avatar Damon

上传组件路径修复

parent 205a9191
......@@ -125,14 +125,16 @@
setValue() {
const dataValue = []
this.imgList.map(item=>{
dataValue.push(item.path)
dataValue.push(item.src)
})
console.log("dataValue", dataValue)
this.valueChange(dataValue)
},
closeTake(val) {
if(val && val.length > 0){
val.forEach((item,index,array)=>{
item.path = item.key
item.src = item.key
this.imgList.push(item)
})
this.setValue()
......
......@@ -128,7 +128,7 @@
this.initData()
photo.currentItem = this.currentItem
if (this.currentItem.images.length > 0) {
if (this.currentItem.images && this.currentItem.images.length > 0) {
this.shadowInitShow = true
this.standardShow = true
this.standardStatus = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment