wenhongquan 8 лет назад
Родитель
Сommit
37f2b54bc4
2 измененных файлов с 13 добавлено и 5 удалено
  1. 8 0
      VisualInspection/fis-conf.js
  2. 5 5
      VisualInspection/js/config.js

+ 8 - 0
VisualInspection/fis-conf.js

@@ -26,6 +26,14 @@ fis.match('*.png', {
     optimizer: fis.plugin('png-compressor')
     optimizer: fis.plugin('png-compressor')
 });
 });
 
 
+fis.set('date', new Date);
+
+fis.match('*.{js,css,png}', {
+    query: '?t=' + (fis.get('date').getYear() + 1900) 
+                 + (fis.get('date').getMonth() + 1) 
+                 + (fis.get('date').getDate())
+});
+
 // Global end
 // Global end
 // default media is `dev`
 // default media is `dev`
 fis.media('dev')
 fis.media('dev')

+ 5 - 5
VisualInspection/js/config.js

@@ -11,8 +11,8 @@ function getCurrentaddr(){
     return "http://"+window.location.host+"/"
     return "http://"+window.location.host+"/"
 }
 }
 function getserveraddr(){
 function getserveraddr(){
-    if(base_ui_url.indexOf("topm.win")!=-1){
-        return "http://server_yanhai.git.topm.win:8080/";
+    if(base_ui_url.indexOf("jsjtyxt.com")!=-1){
+        return "http://server_yanhai.jsxt.jsjtyxt.com/";
     }
     }
     else if(base_ui_url.indexOf("localhost")!=-1){
     else if(base_ui_url.indexOf("localhost")!=-1){
         return "http://localhost:8089/"
         return "http://localhost:8089/"
@@ -25,11 +25,11 @@ function getserveraddr(){
     }
     }
 }
 }
 function getImageaddr(){
 function getImageaddr(){
-    if(base_ui_url.indexOf("topm.win")!=-1){
-        return "http://file_yanhai.git.topm.win:8080/";
+    if(base_ui_url.indexOf("jsjtyxt.com")!=-1){
+        return "http://file_yanhai.jsxt.jsjtyxt.com/";
     }
     }
     else if(base_ui_url.indexOf("localhost")!=-1){
     else if(base_ui_url.indexOf("localhost")!=-1){
-        return "http://file_yanhai.git.topm.win:8080/"
+        return "http://file_yanhai.jsxt.jsjtyxt.com/"
         // return "http://localhost:9080/"
         // return "http://localhost:9080/"
     }else{
     }else{
         return "http://10.112.0.199/"
         return "http://10.112.0.199/"