瀏覽代碼

:recycle: ignore always sorted types

tags/0.9.0
J 4 年之前
父節點
當前提交
2cf886d665
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      vue-theme/src/pages/list.vue

+ 6
- 1
vue-theme/src/pages/list.vue 查看文件

@@ -156,7 +156,7 @@ export default {
156 156
             // Always unset before setting the intersection loader
157 157
             this.unsetIntersectionLoader()
158 158
 
159
-            console.warn('Setting interesection loader...')
159
+            // console.warn('Setting interesection loader...')
160 160
             this.observer = new IntersectionObserver(entries => {
161 161
                 entries.forEach(entry => {
162 162
                     if (!entry.isIntersecting || this.loadingFetched) return
@@ -199,6 +199,11 @@ export default {
199 199
         // and the post type has changed
200 200
         type(newType, oldType) {
201 201
             if(!postTypes.includes(newType)) return console.warn('type not valid...')
202
+
203
+            // Ignore types with presorts so the sortBy watcher can handle them
204
+            const ignore = ['event, exhibition']
205
+            if(ignore.includes(newType)) return
206
+            
202 207
             this.clearAndInitPostList('type change')
203 208
         },
204 209
         sortBy(newSort, oldSort) {

Loading…
取消
儲存