소스 검색

fix: 如果导览为空 则不做就近检测

bill 2 주 전
부모
커밋
201c4a42d2
3개의 변경된 파일34721개의 추가작업 그리고 2개의 파일을 삭제
  1. 34719 0
      scene/package-lock.json
  2. 1 1
      scene/public/static/data/data.json
  3. 1 1
      scene/public/static/js/main_2020_show.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 34719 - 0
scene/package-lock.json


+ 1 - 1
scene/public/static/data/data.json

@@ -6,7 +6,7 @@
       {
         "name": "西雁翅楼",
         "label": "茶世界",
-        "num": "KJ-t-tHpdpKvb0ew",
+        "num": "KJ-CmveHNimLmQ",
         "content": {
           "title": "前言",
           "descs": [

+ 1 - 1
scene/public/static/js/main_2020_show.js

@@ -5240,7 +5240,7 @@ window.Modernizr = function(n, e, t) {
             
             n.prototype.atEndOfTour = function(currentItem=this.currentItem) { 
                                                             
-                var end = currentItem && currentItem[0] >= this.nItems - 1; 
+                var end = this.model.heroLocations.length > 0 && currentItem && currentItem[0] >= this.nItems - 1; 
                 if(end){
                     var heroLocations = this.model.heroLocations[this.nItems-1].heroLocations
                     if(heroLocations){