Procházet zdrojové kódy

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

tags/0.9.0
J před 4 roky
rodič
revize
68c9f321c1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      vue-theme/src/pages/single.vue

+ 2
- 2
vue-theme/src/pages/single.vue Zobrazit soubor

@@ -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,

Načítá se…
Zrušit
Uložit