|
|
@@ -690,18 +690,30 @@ export default {
|
|
|
let node2 = this.top_list[i+1];
|
|
|
if(node2 && top_page >= node1 && top_page < node2){
|
|
|
this.classIndex = i;
|
|
|
- this.globalClassItemList[this.classIndex].isActive = true;
|
|
|
- this.globalClassItemList[this.classIndex+1].isActive = true;
|
|
|
+ if(this.globalClassItemList[this.classIndex]){
|
|
|
+ this.globalClassItemList[this.classIndex].isActive = true;
|
|
|
+ }
|
|
|
+ if(this.globalClassItemList[this.classIndex+1]){
|
|
|
+ this.globalClassItemList[this.classIndex+1].isActive = true;
|
|
|
+ }
|
|
|
if(this.globalClassItemList[this.classIndex+1].child.length<5){
|
|
|
- this.globalClassItemList[this.classIndex+2].isActive = true;
|
|
|
+ if(this.globalClassItemList[this.classIndex+2]){
|
|
|
+ this.globalClassItemList[this.classIndex+2].isActive = true;
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
}else if(node2 && top_page === node2){
|
|
|
this.classIndex = i + 1;
|
|
|
- this.globalClassItemList[this.classIndex].isActive = true;
|
|
|
- this.globalClassItemList[this.classIndex+1].isActive = true;
|
|
|
+ if(this.globalClassItemList[this.classIndex]){
|
|
|
+ this.globalClassItemList[this.classIndex].isActive = true;
|
|
|
+ }
|
|
|
+ if(this.globalClassItemList[this.classIndex+1]){
|
|
|
+ this.globalClassItemList[this.classIndex+1].isActive = true;
|
|
|
+ }
|
|
|
if(this.globalClassItemList[this.classIndex+1].child.length<5){
|
|
|
- this.globalClassItemList[this.classIndex+2].isActive = true;
|
|
|
+ if(this.globalClassItemList[this.classIndex+2]){
|
|
|
+ this.globalClassItemList[this.classIndex+2].isActive = true;
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
}
|