dedsudiyu 2 年之前
父節點
當前提交
df267b561f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/newEvacuationBigDataHome.vue

+ 3 - 1
src/views/newEvacuationBigDataHome.vue

@@ -213,7 +213,9 @@
         if(this.maxMapList[num]){
           let list = [];
           let index = 0;
-          if(num-2<=0 && num+2>=(self.maxMapList.length-1)){
+          if(num == self.maxMapList.length-1){
+            index = 0
+          }else if(num-2<=0 && num+2>=(self.maxMapList.length-1)){
             index = 0;
           }else if (num > (self.maxMapList.length-6) && (num-2) > 0){
             if(num + 2 > (self.maxMapList.length-1)){