|
|
@@ -189,16 +189,13 @@ export default {
|
|
189
|
189
|
watch: {
|
|
190
|
190
|
$route(to, from) {
|
|
191
|
191
|
// Only grab the hero if moving to another list page
|
|
192
|
|
- if (to.fullPath.split('/').filter(p => p).length < 1) {
|
|
|
192
|
+ console.log(to.fullPath.split('/'))
|
|
|
193
|
+ if (to.fullPath.split('/').length < 1) {
|
|
193
|
194
|
this.clearHero()
|
|
194
|
195
|
this.checkAndSetHero(this.type)
|
|
195
|
196
|
}
|
|
196
|
197
|
|
|
197
|
|
- let sort = to.path
|
|
198
|
|
- .split('/')
|
|
199
|
|
- .filter(p => p)
|
|
200
|
|
- .pop()
|
|
201
|
|
-
|
|
|
198
|
+ let sort = to.path.split('/').pop()
|
|
202
|
199
|
if (!Object.values(sortTypes).includes(sort)) {
|
|
203
|
200
|
// console.warn('sort not found:', sort)
|
|
204
|
201
|
sort = null
|