jufubao-base 1.0.106 → 1.0.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -507,7 +507,14 @@
|
|
|
507
507
|
},
|
|
508
508
|
})
|
|
509
509
|
.then(res => {
|
|
510
|
-
|
|
510
|
+
|
|
511
|
+
//非预览模式或者预览模式返回广告列表
|
|
512
|
+
if(!this.isPreview ||
|
|
513
|
+
(this.isPreview && res.list.length > 0)
|
|
514
|
+
){
|
|
515
|
+
this.outOneHeight = this.height * Number(res.list.length) + (Number(this.padding) * (Number(this.useNumber) - 1));
|
|
516
|
+
}
|
|
517
|
+
|
|
511
518
|
if(res.list.length === 0 && this.isPreview) {
|
|
512
519
|
res.list = this.getTestData();
|
|
513
520
|
}
|