Pārlūkot izejas kodu

:bug: using path for route so we can still use query in the url

tags/0.9.0
j 5 gadus atpakaļ
vecāks
revīzija
238782231c
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      vue-theme/src/utils/helpers.js

+ 1
- 1
vue-theme/src/utils/helpers.js Parādīt failu

@@ -8,7 +8,7 @@ const dePluralize = type => {
8 8
 }
9 9
 
10 10
 const typeFromRoute = (route) => {
11
-    const type = route.params.type ? route.params.type : route.fullPath.slice(1)
11
+    const type = route.params.type ? route.params.type : route.path.slice(1)
12 12
     return type
13 13
 }
14 14
 

Notiek ielāde…
Atcelt
Saglabāt