eoss-ui 0.4.98 → 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 (106) 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 +72 -49
  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 +17 -17
  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/src/index.js +1 -1
  47. package/src/utils/util.js +17 -17
  48. package/CHANGELOG.md +0 -929
  49. package/packages/theme-chalk/lib/base.css +0 -1
  50. package/packages/theme-chalk/lib/button-group.css +0 -1
  51. package/packages/theme-chalk/lib/button.css +0 -0
  52. package/packages/theme-chalk/lib/card.css +0 -1
  53. package/packages/theme-chalk/lib/cascader.css +0 -0
  54. package/packages/theme-chalk/lib/checkbox-group.css +0 -1
  55. package/packages/theme-chalk/lib/clients.css +0 -1
  56. package/packages/theme-chalk/lib/data-table-form.css +0 -1
  57. package/packages/theme-chalk/lib/data-table.css +0 -1
  58. package/packages/theme-chalk/lib/date-picker.css +0 -1
  59. package/packages/theme-chalk/lib/dialog.css +0 -1
  60. package/packages/theme-chalk/lib/enterprise.css +0 -1
  61. package/packages/theme-chalk/lib/error-page.css +0 -1
  62. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  63. package/packages/theme-chalk/lib/flow-group.css +0 -1
  64. package/packages/theme-chalk/lib/flow-list.css +0 -1
  65. package/packages/theme-chalk/lib/flow.css +0 -1
  66. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  67. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  68. package/packages/theme-chalk/lib/form.css +0 -1
  69. package/packages/theme-chalk/lib/handle-user.css +0 -1
  70. package/packages/theme-chalk/lib/handler.css +0 -1
  71. package/packages/theme-chalk/lib/icon.css +0 -1
  72. package/packages/theme-chalk/lib/icons.css +0 -1
  73. package/packages/theme-chalk/lib/index.css +0 -1
  74. package/packages/theme-chalk/lib/input-number.css +0 -0
  75. package/packages/theme-chalk/lib/input.css +0 -1
  76. package/packages/theme-chalk/lib/label.css +0 -1
  77. package/packages/theme-chalk/lib/layout.css +0 -1
  78. package/packages/theme-chalk/lib/login.css +0 -1
  79. package/packages/theme-chalk/lib/main.css +0 -1
  80. package/packages/theme-chalk/lib/mainComp.css +0 -0
  81. package/packages/theme-chalk/lib/menu.css +0 -1
  82. package/packages/theme-chalk/lib/nav.css +0 -1
  83. package/packages/theme-chalk/lib/notify.css +0 -0
  84. package/packages/theme-chalk/lib/page.css +0 -1
  85. package/packages/theme-chalk/lib/pagination.css +0 -1
  86. package/packages/theme-chalk/lib/player.css +0 -1
  87. package/packages/theme-chalk/lib/qr-code.css +0 -1
  88. package/packages/theme-chalk/lib/radio-group.css +0 -1
  89. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  90. package/packages/theme-chalk/lib/select-ganged.css +0 -1
  91. package/packages/theme-chalk/lib/select.css +0 -0
  92. package/packages/theme-chalk/lib/selector-panel.css +0 -1
  93. package/packages/theme-chalk/lib/selector.css +0 -1
  94. package/packages/theme-chalk/lib/sizer.css +0 -1
  95. package/packages/theme-chalk/lib/steps.css +0 -1
  96. package/packages/theme-chalk/lib/switch.css +0 -1
  97. package/packages/theme-chalk/lib/table-form.css +0 -0
  98. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  99. package/packages/theme-chalk/lib/tabs.css +0 -1
  100. package/packages/theme-chalk/lib/tips.css +0 -1
  101. package/packages/theme-chalk/lib/toolbar.css +0 -1
  102. package/packages/theme-chalk/lib/tree-group.css +0 -1
  103. package/packages/theme-chalk/lib/tree.css +0 -1
  104. package/packages/theme-chalk/lib/upload.css +0 -1
  105. package/packages/theme-chalk/lib/wujie.css +0 -0
  106. package/packages/theme-chalk/lib/wxlogin.css +0 -1
package/lib/select.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',
package/lib/selector.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/sizer.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/steps.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/switch.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/table-form.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/tabs.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/tips.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/tree-group.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/tree.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/upload.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/utils/util.js CHANGED
@@ -1854,29 +1854,29 @@ var isLogined = function isLogined(_ref8) {
1854
1854
  loginPage = _ref8.loginPage,
1855
1855
  redirect = _ref8.redirect;
1856
1856
 
1857
- var logined = getStorage('logined');
1858
1857
  if (cookie === undefined) {
1859
1858
  cookie = getParams({ name: 'cookie' });
1860
1859
  }
1861
- // eslint-disable-next-line eqeqeq
1862
- if (logined || cookie == true || cookie == 1) {
1863
- if (loginPage) {
1864
- sessionStorage.setItem('loginPage', loginPage);
1865
- if (!startWith(loginPage, ['http', '/'], true)) {
1866
- var pathname = win.top.location.pathname;
1867
- if (pathname !== '/') {
1868
- pathname = pathname.split('/');
1869
- pathname.splice(pathname.length - 1);
1870
- pathname = pathname.join('/');
1871
- loginPage = pathname + '/' + loginPage.replace('./', '');
1872
- } else {
1873
- loginPage = pathname + loginPage.replace('./', '');
1874
- }
1860
+ if (loginPage) {
1861
+ sessionStorage.setItem('loginPage', loginPage);
1862
+ if (!startWith(loginPage, ['http', '/'], true)) {
1863
+ var pathname = win.top.location.pathname;
1864
+ if (pathname !== '/') {
1865
+ pathname = pathname.split('/');
1866
+ pathname.splice(pathname.length - 1);
1867
+ pathname = pathname.join('/');
1868
+ loginPage = pathname + '/' + loginPage.replace('./', '');
1869
+ } else {
1870
+ loginPage = pathname + loginPage.replace('./', '');
1875
1871
  }
1876
1872
  }
1877
- next();
1873
+ }
1874
+ var token = getStorage('token') || getStorage('Authorization');
1875
+ var logined = getStorage('logined');
1876
+ // eslint-disable-next-line eqeqeq
1877
+ if (token || logined || cookie == true || cookie == 1) {
1878
+ next && next();
1878
1879
  } else {
1879
- var token = getStorage('token') || getStorage('Authorization');
1880
1880
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1881
1881
  ajax({
1882
1882
  method: 'post',