Explorar el Código

:bug: solving checking for loaded bug after pluralization

tags/0.9.0
J hace 4 años
padre
commit
3188a627f3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      vue-theme/src/pages/list.vue

+ 2
- 2
vue-theme/src/pages/list.vue Ver fichero

@@ -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()

Loading…
Cancelar
Guardar