Преглед на файлове

:bug: solving checking for loaded bug after pluralization

tags/0.9.0
J преди 4 години
родител
ревизия
3188a627f3
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      vue-theme/src/pages/list.vue

+ 2
- 2
vue-theme/src/pages/list.vue Целия файл

@@ -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…
Отказ
Запис