Browse Source

bug fix:国之重器 多排列几次,看看能不能修复偶发的排列成一列的bug

(cherry picked from commit 08f029d8f16471e915b98a6431eec25481593532)
任一存 2 years ago
parent
commit
6c70fdf9b7
1 changed files with 21 additions and 0 deletions
  1. 21 0
      src/views/Treasure.vue

+ 21 - 0
src/views/Treasure.vue

@@ -104,6 +104,27 @@ onMounted(() => {
       }
     })
   }, 600)
+  // 多排列几次,看看能不能修复偶发的排列成一列的bug
+  setTimeout(() => {
+    const isotopeInst = $('.grid').isotope({
+      layoutMode: 'packery',
+      itemSelector: '.grid-item',
+      packery: {
+        horizontal: true,
+        // gutter: 10,
+      }
+    })
+  }, 1200)
+  setTimeout(() => {
+    const isotopeInst = $('.grid').isotope({
+      layoutMode: 'packery',
+      itemSelector: '.grid-item',
+      packery: {
+        horizontal: true,
+        // gutter: 10,
+      }
+    })
+  }, 1800)
 })
 
 /**