Просмотр исходного кода

:bug: defining type from route

tags/0.9.0
J 4 лет назад
Родитель
Сommit
3c8a7d2d9e
1 измененных файлов: 2 добавлений и 1 удалений
  1. 2
    1
      vue-theme/src/pages/list.vue

+ 2
- 1
vue-theme/src/pages/list.vue Просмотреть файл

@@ -53,7 +53,8 @@ export default {
53 53
             return typeFromRoute(this.$route)
54 54
         },
55 55
         pType() {
56
-            return this.sortBy ? `${type.split('/')[0]}s` : `${type}s`
56
+            console.log(this.type)
57
+            return this.sortBy ? `${this.type.split('/')[0]}s` : `${this.type}s`
57 58
         },
58 59
         loaded() {
59 60
             if (!this.pType) return

Загрузка…
Отмена
Сохранить