Commit 69956ea7 authored by jiangjiaxu's avatar jiangjiaxu

debug result img

parent e9a63dfc
......@@ -988,9 +988,9 @@ export default {
})
.filter((item) => item !== undefined);
imgsNew.forEach((e, index) => {
e.number = index + 1;
});
// imgsNew.forEach((e, index) => {
// e.number = index + 1;
// });
that.groupImgs = imgsNew;
// console.log(
......@@ -1167,6 +1167,35 @@ export default {
},
async changeImgs(index) {
this.imgs = this.allImgs[this.currentIndex];
this.$_.forEach(this.imgs, (o) => {
o.name = o.content.split("|").length > 0 ? o.content.split("|")[0] : "";
o.type = o.content.split("|").length > 1 ? o.content.split("|")[1] : "";
});
// console.log(`lllllllllllllllllold${JSON.stringify(this.imgs)}`);
const imgsNew = this.imgs
.map((item, index, arr) => {
/* const i = this.$_.findIndex(users, function(o) { return o.user == 'barney'; }); */
const i = arr.find(
(_item) => item.type === _item.type && item.url === _item.url
);
if (i !== item) {
if (item.name) {
i.content = `${item.name} ${i.content}`;
}
i.vector.push(item.vector);
return undefined;
}
i.vector = [i.vector];
return i;
})
.filter((item) => item !== undefined);
// imgsNew.forEach((e, index) => {
// e.number = index + 1;
// });
this.groupImgs = imgsNew;
},
},
};
......
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