tremble 3 роки тому
батько
коміт
c99650f872
3 змінених файлів з 8 додано та 2 видалено
  1. 1 1
      edit-backstage/js/Hot.js
  2. 1 1
      web/src/config/http.js
  3. 6 0
      web/src/views/scene/scene.vue

+ 1 - 1
edit-backstage/js/Hot.js

@@ -130,7 +130,7 @@ window.initHot = function(model){
              
             
             this.sid = info.sid;
-            info.styleImg = info.styleImg.map(item=>manage.dealURL(item))
+            info.styleImg = info.styleImg && info.styleImg.map(item=>manage.dealURL(item))
 
             this.preDeal(info, source)// source:来源
             

+ 1 - 1
web/src/config/http.js

@@ -2,7 +2,7 @@ import axios from 'axios'
 
 var isProduction = process.env.NODE_ENV === 'production'
 
-const serverName = isProduction ? '/' : 'http://192.168.0.135:8013/'
+const serverName = isProduction ? '/' : 'http://192.168.0.106:8004/'
 
 const orginLink = window.location.origin
 

+ 6 - 0
web/src/views/scene/scene.vue

@@ -191,6 +191,12 @@ export default {
           this.showhuizhang = true
         }, 3 * 60 * 1000);
 
+        document.addEventListener("visibilitychange", () =>{
+          if(document.visibilityState == 'hidden'){
+            window.player.director.stopTour()
+          }
+        });
+
       }, false);
     });