qinqi пре 2 година
родитељ
комит
9ad93f4312
2 измењених фајлова са 5 додато и 3 уклоњено
  1. 1 1
      wwwroot/mes/login.html
  2. 4 2
      wwwroot/mes/main.html

+ 1 - 1
wwwroot/mes/login.html

@@ -51,7 +51,7 @@
                 $.get('login.ashx?m=0&r=' + Math.random(),$('#ff').serialize(), function (data) {
                     var json = JSON.parse(data);
                     if (json['success'] == true) {
-                        parent.window.location.href = 'main.html';
+                        parent.window.location.href = 'main.html?client=web';
                     }
                     else {
                         $.messager.alert('用户登录', json['message'], 'warning');

+ 4 - 2
wwwroot/mes/main.html

@@ -59,8 +59,10 @@
                     //$.messager.alert('用户登录', json['message'], 'error');
                     $.messager.confirm('用户登录', json['message'] + '\n 点击确定重新登录!', function (r) {
                         if (r) {
-                            //window.location.href = "/mes";
-                            window.location.href = "http://172.18.32.33/?port=9000";
+                            if (request("client") == "web")
+                                window.location.href = "/mes";
+                            else
+                                window.location.href = "http://172.18.32.33/?port=9000";
                         }
                     });
                 }