Commit 2f4fa533 by 前端

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

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