瀏覽代碼

:poop: just setting sort and action no flow control

tags/0.9.0
J 4 年之前
父節點
當前提交
c1c66f3ee6
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. 2
    3
      vue-theme/src/pages/list.vue

+ 2
- 3
vue-theme/src/pages/list.vue 查看文件

94
                 dispatchParams.sortType = sortTypes.currentAndUpcoming
94
                 dispatchParams.sortType = sortTypes.currentAndUpcoming
95
             }
95
             }
96
             // Add to existing except episodes
96
             // Add to existing except episodes
97
-            else if (!clear) {
97
+            if (!clear) {
98
                 dispatchAction = `getMore${this.pType}`
98
                 dispatchAction = `getMore${this.pType}`
99
             }
99
             }
100
 
100
 
101
             res = await this.$store.dispatch(dispatchAction, dispatchParams)
101
             res = await this.$store.dispatch(dispatchAction, dispatchParams)
102
-            
103
-            if(!res.length) {
102
+            if(!res?.length) {
104
                 console.warn('nothing left to get...')
103
                 console.warn('nothing left to get...')
105
                 console.log('responded:', res)
104
                 console.log('responded:', res)
106
             }
105
             }

Loading…
取消
儲存