|
|
@@ -114,14 +114,14 @@ Component({
|
|
|
list.forEach((item, index) => {
|
|
|
if (item.image && !this.data.preloadedImages[item.image]) {
|
|
|
// 创建图片对象进行预加载
|
|
|
- const img = wx.createOffscreenCanvas().getContext('2d');
|
|
|
+ // const img = wx.createOffscreenCanvas().getContext('2d');
|
|
|
preloadedImages[item.image] = true;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// 同时预加载在线观展图标
|
|
|
if (this.data.onlineIcon && !this.data.preloadedImages[this.data.onlineIcon]) {
|
|
|
- const img = wx.createOffscreenCanvas().getContext('2d');
|
|
|
+ // const img = wx.createOffscreenCanvas().getContext('2d');
|
|
|
preloadedImages[this.data.onlineIcon] = true;
|
|
|
}
|
|
|
|