Commit 2f4fa533 by 前端

图片预览现在图片长度为20

1 parent 13540fb1
......@@ -202,6 +202,9 @@ export default {
arr.push(k.path);
}
});
if (arr.length > 20) {
arr.length = 20;
}
return arr;
},
},
......
......@@ -66,12 +66,12 @@ export default {
type: Number,
default: 0,
},
list:{
list: {
type: Array,
default: function () {
return [];
},
}
},
},
data() {
return {
......@@ -224,6 +224,9 @@ export default {
arr.push(k.path);
}
});
if (arr.length > 20) {
arr.length = 20;
}
return arr;
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!