wenhongquan преди 8 години
родител
ревизия
611f8941e1
променени са 3 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      VisualInspection/fis-conf.js
  2. 2 2
      VisualInspection/js/config.js
  3. 1 1
      VisualInspection/js/user/login.js

+ 1 - 1
VisualInspection/fis-conf.js

@@ -29,7 +29,7 @@ fis.match('*.png', {
 fis.set('date', new Date);
 
 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').getDate())
 });

+ 2 - 2
VisualInspection/js/config.js

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

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

@@ -42,7 +42,7 @@ $(document).ready(function() {
             // host = "http://"+window.location.host+"/";
             // base_image_server_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) {
             $btn.button('reset');