crabatool 1.0.808 → 1.0.809

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/res/login.html +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.808",
3
+ "version": "1.0.809",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/res/login.html CHANGED
@@ -17,6 +17,8 @@
17
17
  var authorization = $common.getCookie('ngp-authorization');
18
18
  var ngp_route = $common.getCookie('ngp-route');
19
19
  if (authorization && ngp_route) {
20
+ createLoginBtn(); // 回到登录界面
21
+
20
22
  $ms.router = {//设置请求路由
21
23
  debugMs: JSON.parse($common.getCookie('debugMs')),
22
24
  'ngp-authorization': 'jwt',
@@ -42,15 +44,14 @@
42
44
  $common.loadScript(srcs, function() {
43
45
  showMainPage();
44
46
  });
45
- return;
47
+ } else {
48
+ showLoginPage();
46
49
  }
47
- showLoginPage();
48
50
  }
49
51
 
50
52
  function showMainPage() {
51
53
  $skin.loadCss(modeName + '/skins/craba.min.css,shell/skins/shell.css', 'login', function() {
52
54
  $craba.run(modeName + '/Main.gspx', modeName);
53
- createLoginBtn();
54
55
  });
55
56
  }
56
57