Commit 67371d03 by 前端

剔除图片为空的情况

1 parent 2f4fa533
...@@ -199,8 +199,10 @@ export default { ...@@ -199,8 +199,10 @@ export default {
if (k.pah == url) { if (k.pah == url) {
arr.unshift(k.path); arr.unshift(k.path);
} else { } else {
if(k.path){
arr.push(k.path); arr.push(k.path);
} }
}
}); });
if (arr.length > 20) { if (arr.length > 20) {
arr.length = 20; arr.length = 20;
......
...@@ -221,8 +221,10 @@ export default { ...@@ -221,8 +221,10 @@ export default {
if (k.pah == url) { if (k.pah == url) {
arr.unshift(k.path); arr.unshift(k.path);
} else { } else {
if (k.path) {
arr.push(k.path); arr.push(k.path);
} }
}
}); });
if (arr.length > 20) { if (arr.length > 20) {
arr.length = 20; arr.length = 20;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!