[bugfix] Sku: can not preview image when only have goods picture (#3569)

This commit is contained in:
neverland 2019-06-20 14:22:52 +08:00 committed by GitHub
parent d856ca3bba
commit 12f1939e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,11 +167,12 @@ export default sfc({
imageList() {
const imageList = [this.goods.picture];
if (this.skuTree.length > 0) {
const treeItem = this.skuTree.filter(item => item.k_s === 's1')[0] || {};
if (!treeItem.v) {
return;
return imageList;
}
treeItem.v.forEach(vItem => {