Procházet zdrojové kódy

:bug: solving checking for loaded bug after pluralization

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

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

@@ -135,7 +135,7 @@ export default {
135 135
             this.checkAndSetHero(this.type)
136 136
         },
137 137
         $route(to, from) {
138
-            let type = convertTitleCase(this.type)
138
+            let type = convertTitleCase(this.type) +'s'
139 139
             let sort = to.path
140 140
                 .split('/')
141 141
                 .filter(p => p)
@@ -155,7 +155,7 @@ export default {
155 155
         }
156 156
     },
157 157
     created() {
158
-        let type = convertTitleCase(this.type)
158
+        let type = convertTitleCase(this.type) + 's'
159 159
         this.checkAndSetHero(this.type)
160 160
 
161 161
         if (!this[`all${type}Loaded`]) this.getPosts()

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