root hace 2 años
padre
commit
51ba813530
Se han modificado 2 ficheros con 6 adiciones y 5 borrados
  1. 5 4
      app.html
  2. 1 1
      public/static/tools/common.js

+ 5 - 4
app.html

@@ -130,7 +130,6 @@
             var data = params.data;
             var body = params.body;
             var url = systemUri + params.url;
-            console.log('----------------'+url)
 
             var form = new FormData();
             form = JSON.stringify(params.data);
@@ -158,7 +157,10 @@
                 }).then(function (response) {
                   return response.json();
                 }).then(function (res) {
-                
+                  if(res.status == "50000") {
+                    localStorage.removeItem("apiToken");
+                    window.location.href="./login.html";
+                  }
                   // if (isFormData) {
                   //   data['data'] = res.data;
                   // }
@@ -166,8 +168,7 @@
                 });
             });
           },
-        
-       
+
           updateLocation: (location, replace) => {
             location = normalizeLink(location);
             if (location === 'goBack') {

+ 1 - 1
public/static/tools/common.js

@@ -53,5 +53,5 @@ function getLanguageInfo() {
 // 获取系统url
 function getSystemIp() {
 
-  return "http://localhost:8081";
+  return "http://16.163.228.151:8052";
 }