|
|
@ -53,8 +53,17 @@ export default { |
|
|
|
'MySessionListUpcoming', |
|
|
|
'MySessionListUpcoming', |
|
|
|
'MySessionListPast', |
|
|
|
'MySessionListPast', |
|
|
|
'Home', |
|
|
|
'Home', |
|
|
|
|
|
|
|
'MessageList', |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.$route.name.includes('Message')) { |
|
|
|
|
|
|
|
items.push({ |
|
|
|
|
|
|
|
text: this.$t('Messages'), |
|
|
|
|
|
|
|
//disabled: route.path === path || lastItem.path === route.path, |
|
|
|
|
|
|
|
href: '/resources/messages' |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (list.includes(this.$route.name)) { |
|
|
|
if (list.includes(this.$route.name)) { |
|
|
|
return items; |
|
|
|
return items; |
|
|
|
} |
|
|
|
} |
|
|
@ -97,7 +106,6 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// course is set in documents/List.vue |
|
|
|
// course is set in documents/List.vue |
|
|
|
if (this.course) { |
|
|
|
if (this.course) { |
|
|
|
console.log('copursssss'); |
|
|
|
|
|
|
|
// First node |
|
|
|
// First node |
|
|
|
items.push({ |
|
|
|
items.push({ |
|
|
|
text: this.course.title, |
|
|
|
text: this.course.title, |
|
|
@ -106,14 +114,16 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(items); |
|
|
|
console.log(items); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { path, matched } = this.$route; |
|
|
|
|
|
|
|
const lastItem = matched[matched.length - 1]; |
|
|
|
|
|
|
|
|
|
|
|
if (this.resourceNode) { |
|
|
|
if (this.resourceNode) { |
|
|
|
console.log('resourceNode'); |
|
|
|
console.log('resourceNode'); |
|
|
|
console.log(this.resourceNode); |
|
|
|
console.log(this.resourceNode); |
|
|
|
console.log(this.resourceNode.path); |
|
|
|
console.log(this.resourceNode.path); |
|
|
|
|
|
|
|
|
|
|
|
const parts = this.resourceNode.path.split('/'); |
|
|
|
const parts = this.resourceNode.path.split('/'); |
|
|
|
const { path, matched } = this.$route; |
|
|
|
|
|
|
|
const lastItem = matched[matched.length - 1]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (let i = 0, len = parts.length; i < len; i += 1) { |
|
|
|
for (let i = 0, len = parts.length; i < len; i += 1) { |
|
|
|
let route = parts[i]; |
|
|
|
let route = parts[i]; |
|
|
@ -135,18 +145,17 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log('legacy'); |
|
|
|
for (let i = 1, len = matched.length; i < len; i += 1) { |
|
|
|
for (let i = 1, len = matched.length; i < len; i += 1) { |
|
|
|
const route = matched[i]; |
|
|
|
const route = matched[i]; |
|
|
|
console.log(route.name); |
|
|
|
console.log(route.name); |
|
|
|
if (route.path) { |
|
|
|
if (route.path) { |
|
|
|
items.push({ |
|
|
|
items.push({ |
|
|
|
text: route.name, |
|
|
|
text: route.name, |
|
|
|
disabled: route.path === path || lastItem.path === route.path, |
|
|
|
disabled: route.path === path || lastItem.path === route.path, |
|
|
|
href: route.path |
|
|
|
href: route.path |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|