Explorar o código

visiblePanos为undefined

zhouenguang %!s(int64=3) %!d(string=hai) anos
pai
achega
a6b886f8a1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      js/Hot.js

+ 2 - 1
js/Hot.js

@@ -1057,7 +1057,8 @@ window.initHot = function(model){
                 },
                 
                 (pano)=>{ // add
-                    return this.info.visiblePanos.includes(pano.id)
+                    // 周恩光改 解决visiblePanos为undefined时的bug
+                    return this.info.visiblePanos && this.info.visiblePanos.includes(pano.id)
                 }    
             )
             n.push(