Ver Fonte

时间戳

wenhongquan há 8 anos atrás
pai
commit
611f8941e1

+ 1 - 1
VisualInspection/fis-conf.js

@@ -29,7 +29,7 @@ fis.match('*.png', {
 fis.set('date', new Date);
 fis.set('date', new Date);
 
 
 fis.match('*.{js,css,png}', {
 fis.match('*.{js,css,png}', {
-    query: '?t=' + (fis.get('date').getYear() + 1900) 
+    query: '?time=' + (fis.get('date').getYear() + 1900) 
                  + (fis.get('date').getMonth() + 1) 
                  + (fis.get('date').getMonth() + 1) 
                  + (fis.get('date').getDate())
                  + (fis.get('date').getDate())
 });
 });

+ 2 - 2
VisualInspection/js/config.js

@@ -15,8 +15,8 @@ function getserveraddr() {
     if (base_ui_url.indexOf("jsjtyxt.com") != -1) {
     if (base_ui_url.indexOf("jsjtyxt.com") != -1) {
         return "http://server_yanhai.jsxt.jsjtyxt.com/";
         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://10.112.0.199:7001/"
-             return "http://localhost:8089/"
+        return "http://10.112.0.199:7001/"
+            //  return "http://localhost:8089/"
     } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
     } else if (base_ui_url.indexOf("192.168.8.236") != -1) {
         return "http://192.168.8.236:8089/"
         return "http://192.168.8.236:8089/"
     } else {
     } else {

+ 1 - 1
VisualInspection/js/user/login.js

@@ -42,7 +42,7 @@ $(document).ready(function() {
             // host = "http://"+window.location.host+"/";
             // host = "http://"+window.location.host+"/";
             // base_image_server_url = host;
             // base_image_server_url = host;
             // base_ui_url = host;
             // base_ui_url = host;
-            window.location.href = base_ui_url + "view/main.html"
+            window.location.href = base_ui_url + "view/main.html?time="+(Date.parse(new Date()))
 
 
         }, function(error) {
         }, function(error) {
             $btn.button('reset');
             $btn.button('reset');