eoss-ui 0.4.97 → 0.4.99

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 (107) hide show
  1. package/lib/button-group.js +17 -17
  2. package/lib/button.js +17 -17
  3. package/lib/checkbox-group.js +17 -17
  4. package/lib/data-table-form.js +17 -17
  5. package/lib/data-table.js +17 -17
  6. package/lib/date-picker.js +17 -17
  7. package/lib/dialog.js +17 -17
  8. package/lib/eoss-ui.common.js +92 -58
  9. package/lib/flow-group.js +17 -17
  10. package/lib/flow-list.js +17 -17
  11. package/lib/flow.js +42 -22
  12. package/lib/form.js +17 -17
  13. package/lib/handle-user.js +17 -17
  14. package/lib/handler.js +17 -17
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +17 -17
  17. package/lib/input.js +17 -17
  18. package/lib/login.js +17 -17
  19. package/lib/main.js +36 -33
  20. package/lib/nav.js +17 -17
  21. package/lib/page.js +17 -17
  22. package/lib/player.js +17 -17
  23. package/lib/qr-code.js +17 -17
  24. package/lib/radio-group.js +17 -17
  25. package/lib/retrial-auth.js +17 -17
  26. package/lib/select-ganged.js +17 -17
  27. package/lib/select.js +17 -17
  28. package/lib/selector-panel.js +17 -17
  29. package/lib/selector.js +17 -17
  30. package/lib/sizer.js +17 -17
  31. package/lib/steps.js +17 -17
  32. package/lib/switch.js +17 -17
  33. package/lib/table-form.js +17 -17
  34. package/lib/tabs.js +17 -17
  35. package/lib/tips.js +17 -17
  36. package/lib/tree-group.js +17 -17
  37. package/lib/tree.js +17 -17
  38. package/lib/upload.js +35 -24
  39. package/lib/utils/util.js +17 -17
  40. package/lib/wujie.js +17 -17
  41. package/lib/wxlogin.js +17 -17
  42. package/package.json +1 -1
  43. package/packages/flow/src/main.vue +20 -3
  44. package/packages/main/src/main.vue +17 -6
  45. package/packages/theme-chalk/gulpfile.js +25 -0
  46. package/packages/upload/src/main.vue +16 -6
  47. package/src/index.js +1 -1
  48. package/src/utils/util.js +17 -17
  49. package/CHANGELOG.md +0 -929
  50. package/packages/theme-chalk/lib/base.css +0 -1
  51. package/packages/theme-chalk/lib/button-group.css +0 -1
  52. package/packages/theme-chalk/lib/button.css +0 -0
  53. package/packages/theme-chalk/lib/card.css +0 -1
  54. package/packages/theme-chalk/lib/cascader.css +0 -0
  55. package/packages/theme-chalk/lib/checkbox-group.css +0 -1
  56. package/packages/theme-chalk/lib/clients.css +0 -1
  57. package/packages/theme-chalk/lib/data-table-form.css +0 -1
  58. package/packages/theme-chalk/lib/data-table.css +0 -1
  59. package/packages/theme-chalk/lib/date-picker.css +0 -1
  60. package/packages/theme-chalk/lib/dialog.css +0 -1
  61. package/packages/theme-chalk/lib/enterprise.css +0 -1
  62. package/packages/theme-chalk/lib/error-page.css +0 -1
  63. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  64. package/packages/theme-chalk/lib/flow-group.css +0 -1
  65. package/packages/theme-chalk/lib/flow-list.css +0 -1
  66. package/packages/theme-chalk/lib/flow.css +0 -1
  67. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  68. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  69. package/packages/theme-chalk/lib/form.css +0 -1
  70. package/packages/theme-chalk/lib/handle-user.css +0 -1
  71. package/packages/theme-chalk/lib/handler.css +0 -1
  72. package/packages/theme-chalk/lib/icon.css +0 -1
  73. package/packages/theme-chalk/lib/icons.css +0 -1
  74. package/packages/theme-chalk/lib/index.css +0 -1
  75. package/packages/theme-chalk/lib/input-number.css +0 -0
  76. package/packages/theme-chalk/lib/input.css +0 -1
  77. package/packages/theme-chalk/lib/label.css +0 -1
  78. package/packages/theme-chalk/lib/layout.css +0 -1
  79. package/packages/theme-chalk/lib/login.css +0 -1
  80. package/packages/theme-chalk/lib/main.css +0 -1
  81. package/packages/theme-chalk/lib/mainComp.css +0 -0
  82. package/packages/theme-chalk/lib/menu.css +0 -1
  83. package/packages/theme-chalk/lib/nav.css +0 -1
  84. package/packages/theme-chalk/lib/notify.css +0 -0
  85. package/packages/theme-chalk/lib/page.css +0 -1
  86. package/packages/theme-chalk/lib/pagination.css +0 -1
  87. package/packages/theme-chalk/lib/player.css +0 -1
  88. package/packages/theme-chalk/lib/qr-code.css +0 -1
  89. package/packages/theme-chalk/lib/radio-group.css +0 -1
  90. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  91. package/packages/theme-chalk/lib/select-ganged.css +0 -1
  92. package/packages/theme-chalk/lib/select.css +0 -0
  93. package/packages/theme-chalk/lib/selector-panel.css +0 -1
  94. package/packages/theme-chalk/lib/selector.css +0 -1
  95. package/packages/theme-chalk/lib/sizer.css +0 -1
  96. package/packages/theme-chalk/lib/steps.css +0 -1
  97. package/packages/theme-chalk/lib/switch.css +0 -1
  98. package/packages/theme-chalk/lib/table-form.css +0 -0
  99. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  100. package/packages/theme-chalk/lib/tabs.css +0 -1
  101. package/packages/theme-chalk/lib/tips.css +0 -1
  102. package/packages/theme-chalk/lib/toolbar.css +0 -1
  103. package/packages/theme-chalk/lib/tree-group.css +0 -1
  104. package/packages/theme-chalk/lib/tree.css +0 -1
  105. package/packages/theme-chalk/lib/upload.css +0 -1
  106. package/packages/theme-chalk/lib/wujie.css +0 -0
  107. package/packages/theme-chalk/lib/wxlogin.css +0 -1
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',
package/lib/input.js CHANGED
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',
package/lib/login.js CHANGED
@@ -1938,29 +1938,29 @@ var isLogined = function isLogined(_ref8) {
1938
1938
  loginPage = _ref8.loginPage,
1939
1939
  redirect = _ref8.redirect;
1940
1940
 
1941
- var logined = getStorage('logined');
1942
1941
  if (cookie === undefined) {
1943
1942
  cookie = getParams({ name: 'cookie' });
1944
1943
  }
1945
- // eslint-disable-next-line eqeqeq
1946
- if (logined || cookie == true || cookie == 1) {
1947
- if (loginPage) {
1948
- sessionStorage.setItem('loginPage', loginPage);
1949
- if (!startWith(loginPage, ['http', '/'], true)) {
1950
- var pathname = win.top.location.pathname;
1951
- if (pathname !== '/') {
1952
- pathname = pathname.split('/');
1953
- pathname.splice(pathname.length - 1);
1954
- pathname = pathname.join('/');
1955
- loginPage = pathname + '/' + loginPage.replace('./', '');
1956
- } else {
1957
- loginPage = pathname + loginPage.replace('./', '');
1958
- }
1944
+ if (loginPage) {
1945
+ sessionStorage.setItem('loginPage', loginPage);
1946
+ if (!startWith(loginPage, ['http', '/'], true)) {
1947
+ var pathname = win.top.location.pathname;
1948
+ if (pathname !== '/') {
1949
+ pathname = pathname.split('/');
1950
+ pathname.splice(pathname.length - 1);
1951
+ pathname = pathname.join('/');
1952
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1953
+ } else {
1954
+ loginPage = pathname + loginPage.replace('./', '');
1959
1955
  }
1960
1956
  }
1961
- next();
1957
+ }
1958
+ var token = getStorage('token') || getStorage('Authorization');
1959
+ var logined = getStorage('logined');
1960
+ // eslint-disable-next-line eqeqeq
1961
+ if (token || logined || cookie == true || cookie == 1) {
1962
+ next && next();
1962
1963
  } else {
1963
- var token = getStorage('token') || getStorage('Authorization');
1964
1964
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1965
1965
  ajax({
1966
1966
  method: 'post',
package/lib/main.js CHANGED
@@ -1938,29 +1938,29 @@ var isLogined = function isLogined(_ref8) {
1938
1938
  loginPage = _ref8.loginPage,
1939
1939
  redirect = _ref8.redirect;
1940
1940
 
1941
- var logined = getStorage('logined');
1942
1941
  if (cookie === undefined) {
1943
1942
  cookie = getParams({ name: 'cookie' });
1944
1943
  }
1945
- // eslint-disable-next-line eqeqeq
1946
- if (logined || cookie == true || cookie == 1) {
1947
- if (loginPage) {
1948
- sessionStorage.setItem('loginPage', loginPage);
1949
- if (!startWith(loginPage, ['http', '/'], true)) {
1950
- var pathname = win.top.location.pathname;
1951
- if (pathname !== '/') {
1952
- pathname = pathname.split('/');
1953
- pathname.splice(pathname.length - 1);
1954
- pathname = pathname.join('/');
1955
- loginPage = pathname + '/' + loginPage.replace('./', '');
1956
- } else {
1957
- loginPage = pathname + loginPage.replace('./', '');
1958
- }
1944
+ if (loginPage) {
1945
+ sessionStorage.setItem('loginPage', loginPage);
1946
+ if (!startWith(loginPage, ['http', '/'], true)) {
1947
+ var pathname = win.top.location.pathname;
1948
+ if (pathname !== '/') {
1949
+ pathname = pathname.split('/');
1950
+ pathname.splice(pathname.length - 1);
1951
+ pathname = pathname.join('/');
1952
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1953
+ } else {
1954
+ loginPage = pathname + loginPage.replace('./', '');
1959
1955
  }
1960
1956
  }
1961
- next();
1957
+ }
1958
+ var token = getStorage('token') || getStorage('Authorization');
1959
+ var logined = getStorage('logined');
1960
+ // eslint-disable-next-line eqeqeq
1961
+ if (token || logined || cookie == true || cookie == 1) {
1962
+ next && next();
1962
1963
  } else {
1963
- var token = getStorage('token') || getStorage('Authorization');
1964
1964
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1965
1965
  ajax({
1966
1966
  method: 'post',
@@ -3510,7 +3510,7 @@ module.exports = require("stompjs");
3510
3510
  // ESM COMPAT FLAG
3511
3511
  __webpack_require__.r(__webpack_exports__);
3512
3512
 
3513
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=67d8ca27&
3513
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=6d42b802&
3514
3514
  var render = function () {
3515
3515
  var _vm = this
3516
3516
  var _h = _vm.$createElement
@@ -3940,7 +3940,7 @@ var staticRenderFns = []
3940
3940
  render._withStripped = true
3941
3941
 
3942
3942
 
3943
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=67d8ca27&
3943
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=6d42b802&
3944
3944
 
3945
3945
  // EXTERNAL MODULE: external "babel-runtime/regenerator"
3946
3946
  var regenerator_ = __webpack_require__(9);
@@ -6365,11 +6365,15 @@ var log = util["a" /* default */].getParams('console');
6365
6365
  };
6366
6366
  },
6367
6367
  created: function created() {
6368
+ var params = util["a" /* default */].getParams() || {};
6369
+ if (Object.prototype.hasOwnProperty.call(params, 'history')) {
6370
+ this.history = params.history == true || params.history == 'true' || params.history == 1;
6371
+ }
6368
6372
  this.homePage = typeof this.loadHomePage === 'string' ? this.loadHomePage : '';
6369
- this.isHeader = util["a" /* default */].getParams('header');
6373
+ this.isHeader = params.header;
6370
6374
  var sysLogoIco = sessionStorage.getItem('sysLogoIco');
6371
6375
  sysLogoIco && util["a" /* default */].setFavicon(sysLogoIco);
6372
- this.isLogin();
6376
+ this.isLogin(params);
6373
6377
  },
6374
6378
  mounted: function mounted() {
6375
6379
  util["a" /* default */].win.reLogin = this.handleReLogin;
@@ -6385,16 +6389,15 @@ var log = util["a" /* default */].getParams('console');
6385
6389
  },
6386
6390
 
6387
6391
  methods: {
6388
- isLogin: function isLogin() {
6392
+ isLogin: function isLogin(query) {
6389
6393
  var _this = this;
6390
6394
 
6391
6395
  return mainvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
6392
- var query, token, loginPage, pathname;
6396
+ var token, loginPage, pathname;
6393
6397
  return regenerator_default.a.wrap(function _callee$(_context) {
6394
6398
  while (1) {
6395
6399
  switch (_context.prev = _context.next) {
6396
6400
  case 0:
6397
- query = util["a" /* default */].getParams();
6398
6401
  token = util["a" /* default */].getStorage('token') || util["a" /* default */].getStorage('Authorization');
6399
6402
  loginPage = util["a" /* default */].getStorage('login') || util["a" /* default */].getStorage('loginPage');
6400
6403
 
@@ -6413,12 +6416,12 @@ var log = util["a" /* default */].getParams('console');
6413
6416
  }
6414
6417
  }
6415
6418
 
6416
- if (!(!token && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType'))) {
6417
- _context.next = 9;
6419
+ if (!(!token && query && Object.prototype.hasOwnProperty.call(query, 'serverId') && Object.prototype.hasOwnProperty.call(query, 'authType'))) {
6420
+ _context.next = 8;
6418
6421
  break;
6419
6422
  }
6420
6423
 
6421
- _context.next = 7;
6424
+ _context.next = 6;
6422
6425
  return util["a" /* default */].ajax({
6423
6426
  method: 'post',
6424
6427
  url: api["b" /* authCenter */],
@@ -6521,14 +6524,14 @@ var log = util["a" /* default */].getParams('console');
6521
6524
  }
6522
6525
  }).catch(function (e) {});
6523
6526
 
6524
- case 7:
6525
- _context.next = 10;
6527
+ case 6:
6528
+ _context.next = 9;
6526
6529
  break;
6527
6530
 
6528
- case 9:
6531
+ case 8:
6529
6532
  _this.getConfig();
6530
6533
 
6531
- case 10:
6534
+ case 9:
6532
6535
  case 'end':
6533
6536
  return _context.stop();
6534
6537
  }
@@ -7068,7 +7071,7 @@ var log = util["a" /* default */].getParams('console');
7068
7071
  _this7.setTips(item);
7069
7072
  });
7070
7073
  } else {
7071
- if (Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
7074
+ if (obj && Object.prototype.hasOwnProperty.call(obj, 'tips') && obj.tips) {
7072
7075
  this.$set(obj, 'tips', false);
7073
7076
  delete obj.tips;
7074
7077
  }
@@ -7366,7 +7369,7 @@ var log = util["a" /* default */].getParams('console');
7366
7369
  if (res.path !== '/' && pathname == _path) {
7367
7370
  return pathname;
7368
7371
  }
7369
- if (Object.prototype.hasOwnProperty.call(res, 'children')) {
7372
+ if (res && Object.prototype.hasOwnProperty.call(res, 'children')) {
7370
7373
  var _path2 = this.hasRouter(res.children, url);
7371
7374
  if (_path2) {
7372
7375
  return _path2;
package/lib/nav.js CHANGED
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',
package/lib/page.js CHANGED
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',
package/lib/player.js CHANGED
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',
package/lib/qr-code.js CHANGED
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',
@@ -1939,29 +1939,29 @@ var isLogined = function isLogined(_ref8) {
1939
1939
  loginPage = _ref8.loginPage,
1940
1940
  redirect = _ref8.redirect;
1941
1941
 
1942
- var logined = getStorage('logined');
1943
1942
  if (cookie === undefined) {
1944
1943
  cookie = getParams({ name: 'cookie' });
1945
1944
  }
1946
- // eslint-disable-next-line eqeqeq
1947
- if (logined || cookie == true || cookie == 1) {
1948
- if (loginPage) {
1949
- sessionStorage.setItem('loginPage', loginPage);
1950
- if (!startWith(loginPage, ['http', '/'], true)) {
1951
- var pathname = win.top.location.pathname;
1952
- if (pathname !== '/') {
1953
- pathname = pathname.split('/');
1954
- pathname.splice(pathname.length - 1);
1955
- pathname = pathname.join('/');
1956
- loginPage = pathname + '/' + loginPage.replace('./', '');
1957
- } else {
1958
- loginPage = pathname + loginPage.replace('./', '');
1959
- }
1945
+ if (loginPage) {
1946
+ sessionStorage.setItem('loginPage', loginPage);
1947
+ if (!startWith(loginPage, ['http', '/'], true)) {
1948
+ var pathname = win.top.location.pathname;
1949
+ if (pathname !== '/') {
1950
+ pathname = pathname.split('/');
1951
+ pathname.splice(pathname.length - 1);
1952
+ pathname = pathname.join('/');
1953
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1954
+ } else {
1955
+ loginPage = pathname + loginPage.replace('./', '');
1960
1956
  }
1961
1957
  }
1962
- next();
1958
+ }
1959
+ var token = getStorage('token') || getStorage('Authorization');
1960
+ var logined = getStorage('logined');
1961
+ // eslint-disable-next-line eqeqeq
1962
+ if (token || logined || cookie == true || cookie == 1) {
1963
+ next && next();
1963
1964
  } else {
1964
- var token = getStorage('token') || getStorage('Authorization');
1965
1965
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1966
1966
  ajax({
1967
1967
  method: 'post',