Переглянути джерело

:bug: defining type from route

tags/0.9.0
J 4 роки тому
джерело
коміт
3c8a7d2d9e
1 змінених файлів з 2 додано та 1 видалено
  1. 2
    1
      vue-theme/src/pages/list.vue

+ 2
- 1
vue-theme/src/pages/list.vue Переглянути файл

53
             return typeFromRoute(this.$route)
53
             return typeFromRoute(this.$route)
54
         },
54
         },
55
         pType() {
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
         loaded() {
59
         loaded() {
59
             if (!this.pType) return
60
             if (!this.pType) return

Завантаження…
Відмінити
Зберегти