Procházet zdrojové kódy

:recycle: dont ignore event and exhbition on route change init

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

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

@@ -210,8 +210,7 @@ export default {
210 210
             // They're often loaded from sidebar
211 211
             const ignoredFromTypeChange = ['event', 'exhibition']
212 212
             if (
213
-                typeFromRoute(to) != typeFromRoute(from) &&
214
-                !ignoredFromTypeChange.includes(typeFromRoute(to))
213
+                typeFromRoute(to) != typeFromRoute(from)
215 214
             ) {
216 215
                 this.clearAndInitPostList('type change')
217 216
             }
@@ -220,7 +219,7 @@ export default {
220 219
                 // Post slug sometimes appears as a sort so we check it against known sorts
221 220
                 validSorts.includes(to.sortBy) && validSorts.includes(from.sortBy)
222 221
             ) {
223
-                console.log('$route watcher:sort changed fired', to, from)
222
+                this.clearAndInitPostList('sort change')
224 223
             } 
225 224
         }
226 225
     },

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