|
@@ -73,18 +73,6 @@
|
|
if (to.meta.keepAlive) {
|
|
if (to.meta.keepAlive) {
|
|
!this.include.includes(to.name) && this.include.push(to.name);
|
|
!this.include.includes(to.name) && this.include.push(to.name);
|
|
}
|
|
}
|
|
- // if (to.meta.parentNode && to.meta.parentNode.indexOf(from.name) > -1) {
|
|
|
|
- // !this.include.includes(from.name) && this.include.push(from.name);
|
|
|
|
- // } else if (from.meta.parentNode && from.meta.parentNode.indexOf(to.name) > -1) {} else {
|
|
|
|
- // if (from.meta.parentNode) {
|
|
|
|
- // var index = this.include.indexOf(from.meta.parentNode);
|
|
|
|
- // index !== -1 && this.include.splice(index, 1);
|
|
|
|
- // }
|
|
|
|
- // if (!from.meta.parentNode) {
|
|
|
|
- // var index = this.include.indexOf(from.name);
|
|
|
|
- // index !== -1 && this.include.splice(index, 1);
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
// 标签页
|
|
// 标签页
|
|
if (to.name != 'login') {
|
|
if (to.name != 'login') {
|
|
this.menuDatas.forEach(element => {
|
|
this.menuDatas.forEach(element => {
|