mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
[bugfix] Sku: can not preview image when only have goods picture (#3569)
This commit is contained in:
@@ -167,11 +167,12 @@ export default sfc({
|
|||||||
|
|
||||||
imageList() {
|
imageList() {
|
||||||
const imageList = [this.goods.picture];
|
const imageList = [this.goods.picture];
|
||||||
|
|
||||||
if (this.skuTree.length > 0) {
|
if (this.skuTree.length > 0) {
|
||||||
const treeItem = this.skuTree.filter(item => item.k_s === 's1')[0] || {};
|
const treeItem = this.skuTree.filter(item => item.k_s === 's1')[0] || {};
|
||||||
|
|
||||||
if (!treeItem.v) {
|
if (!treeItem.v) {
|
||||||
return;
|
return imageList;
|
||||||
}
|
}
|
||||||
|
|
||||||
treeItem.v.forEach(vItem => {
|
treeItem.v.forEach(vItem => {
|
||||||
|
Reference in New Issue
Block a user