Browse Source

web: 修复pc端目录滚动

Xwite 3 years ago
parent
commit
11fb7d50f3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules/web/src/components/PopCatalog.vue

+ 2 - 1
modules/web/src/components/PopCatalog.vue

@@ -50,11 +50,12 @@ const virtualListdata = computed(() => {
   let virtualListDataSource = new Array(length);
 
   let i = 0;
-  while ((i++) < length) {
+  while (i < length) {
     virtualListDataSource[i] = {
       index: i,
       catas: catalogValue.slice(2 * i, 2 * i + 2)
     }
+    i++;
   }
   return virtualListDataSource;
 });