mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 02:16:12 +08:00
[bugfix] Sku: can not preview image when only have goods picture (#3569)
This commit is contained in:
parent
d856ca3bba
commit
12f1939e7d
@ -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 => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user