소스 검색

:recycle: testing removal of all dispatch checks in single.vue

tags/0.9.0
J 4 년 전
부모
커밋
68c9f321c1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      vue-theme/src/pages/single.vue

+ 2
- 2
vue-theme/src/pages/single.vue 파일 보기

@@ -203,11 +203,11 @@ export default {
203 203
             /**
204 204
              * Load posts if they're not already in state
205 205
              */
206
-            if (!this[`all${type}Loaded`] && allPostsOfType.length < 1) {
206
+            // if (!this[`all${type}Loaded`] && allPostsOfType.length < 1) {
207 207
                 const res = await this.$store.dispatch(`getAll${type}`)
208 208
                 allPostsOfType = res
209 209
                 console.log(`reloaded ${type}...`)
210
-            }
210
+            // }
211 211
             if (allPostsOfType.length < 1) return
212 212
             const singlePostData = allPostsOfType.filter(
213 213
                 post => post.slug == this.$route.params.slug,

Loading…
취소
저장