jufubao-mall 2.0.14 → 2.0.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -225,6 +225,7 @@
225
225
  let index = navList.findIndex(item => {
226
226
  return scrollTop < item.top;
227
227
  })
228
+ if(index === -1) index = navList.length;
228
229
  index = index === 0 ? 0 : index - 1;
229
230
  let selectNav = navList[index];
230
231
  this.selectNav = selectNav;