eoss-ui 0.4.58 → 0.4.59

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 (71) hide show
  1. package/lib/button-group.js +18 -5
  2. package/lib/button.js +18 -5
  3. package/lib/checkbox-group.js +18 -5
  4. package/lib/clients.js +95 -4
  5. package/lib/data-table-form.js +18 -5
  6. package/lib/data-table.js +23 -11
  7. package/lib/date-picker.js +18 -5
  8. package/lib/dialog.js +18 -5
  9. package/lib/eoss-ui.common.js +1322 -1049
  10. package/lib/flow-group.js +927 -860
  11. package/lib/flow-list.js +18 -5
  12. package/lib/flow.js +31 -16
  13. package/lib/form.js +18 -5
  14. package/lib/handle-user.js +18 -5
  15. package/lib/handler.js +37 -15
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +18 -5
  18. package/lib/input.js +30 -10
  19. package/lib/login.js +101 -33
  20. package/lib/main.js +62 -30
  21. package/lib/mainComp.js +18 -5
  22. package/lib/nav.js +18 -5
  23. package/lib/page.js +18 -5
  24. package/lib/player.js +18 -5
  25. package/lib/qr-code.js +18 -5
  26. package/lib/radio-group.js +18 -5
  27. package/lib/retrial-auth.js +18 -5
  28. package/lib/select-ganged.js +18 -5
  29. package/lib/select.js +18 -5
  30. package/lib/selector-panel.js +18 -5
  31. package/lib/selector.js +18 -5
  32. package/lib/sizer.js +18 -5
  33. package/lib/steps.js +18 -5
  34. package/lib/switch.js +18 -5
  35. package/lib/table-form.js +25 -11
  36. package/lib/tabs.js +18 -5
  37. package/lib/theme-chalk/clients.css +1 -1
  38. package/lib/theme-chalk/flow-group.css +1 -1
  39. package/lib/theme-chalk/index.css +1 -1
  40. package/lib/theme-chalk/login.css +1 -1
  41. package/lib/tips.js +18 -5
  42. package/lib/toolbar.js +0 -1
  43. package/lib/tree-group.js +18 -5
  44. package/lib/tree.js +18 -5
  45. package/lib/upload.js +89 -52
  46. package/lib/utils/util.js +18 -5
  47. package/lib/wujie.js +18 -5
  48. package/lib/wxlogin.js +18 -5
  49. package/package.json +2 -2
  50. package/packages/clients/src/main.vue +60 -2
  51. package/packages/data-table/src/main.vue +0 -1
  52. package/packages/flow/src/main.vue +1 -0
  53. package/packages/flow/src/startTaskRead.vue +2 -2
  54. package/packages/flow-group/src/main.vue +284 -265
  55. package/packages/form/src/table.vue +3 -2
  56. package/packages/handler/src/main.vue +20 -10
  57. package/packages/input/src/main.vue +7 -2
  58. package/packages/login/src/main.vue +77 -27
  59. package/packages/main/src/main.vue +20 -10
  60. package/packages/main/src/userinfo.vue +20 -9
  61. package/packages/theme-chalk/lib/clients.css +1 -1
  62. package/packages/theme-chalk/lib/flow-group.css +1 -1
  63. package/packages/theme-chalk/lib/index.css +1 -1
  64. package/packages/theme-chalk/lib/login.css +1 -1
  65. package/packages/theme-chalk/src/clients.scss +8 -0
  66. package/packages/theme-chalk/src/flow-group.scss +9 -3
  67. package/packages/theme-chalk/src/login.scss +3 -0
  68. package/packages/toolbar/src/main.vue +0 -1
  69. package/packages/upload/src/main.vue +43 -27
  70. package/src/index.js +1 -1
  71. package/src/utils/util.js +20 -10
package/lib/page.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
package/lib/player.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
package/lib/qr-code.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
package/lib/select.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
package/lib/selector.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
package/lib/sizer.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
package/lib/steps.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
package/lib/switch.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
package/lib/table-form.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {
@@ -2879,8 +2892,8 @@ module.exports = require("json-bigint");
2879
2892
  // ESM COMPAT FLAG
2880
2893
  __webpack_require__.r(__webpack_exports__);
2881
2894
 
2882
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=44894e1e&
2883
- var tablevue_type_template_id_44894e1e_render = function () {
2895
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/table.vue?vue&type=template&id=fe3164be&
2896
+ var tablevue_type_template_id_fe3164be_render = function () {
2884
2897
  var _vm = this
2885
2898
  var _h = _vm.$createElement
2886
2899
  var _c = _vm._self._c || _h
@@ -5417,10 +5430,10 @@ var tablevue_type_template_id_44894e1e_render = function () {
5417
5430
  )
5418
5431
  }
5419
5432
  var staticRenderFns = []
5420
- tablevue_type_template_id_44894e1e_render._withStripped = true
5433
+ tablevue_type_template_id_fe3164be_render._withStripped = true
5421
5434
 
5422
5435
 
5423
- // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=44894e1e&
5436
+ // CONCATENATED MODULE: ./packages/form/src/table.vue?vue&type=template&id=fe3164be&
5424
5437
 
5425
5438
  // EXTERNAL MODULE: ./src/utils/rules.js
5426
5439
  var rules = __webpack_require__(10);
@@ -6403,6 +6416,8 @@ var util = __webpack_require__(0);
6403
6416
  //
6404
6417
  //
6405
6418
  //
6419
+ //
6420
+ //
6406
6421
 
6407
6422
 
6408
6423
 
@@ -6417,7 +6432,6 @@ var util = __webpack_require__(0);
6417
6432
  render: [Function, String]
6418
6433
  },
6419
6434
  render: function render(h, ctx) {
6420
- console.log('ctx', ctx);
6421
6435
  if (typeof ctx.props.render == 'string') {
6422
6436
  try {
6423
6437
  return util["a" /* default */].toFunction(ctx.props.render)(h, params);
@@ -6696,7 +6710,7 @@ var componentNormalizer = __webpack_require__(3);
6696
6710
 
6697
6711
  var component = Object(componentNormalizer["a" /* default */])(
6698
6712
  src_tablevue_type_script_lang_js_,
6699
- tablevue_type_template_id_44894e1e_render,
6713
+ tablevue_type_template_id_fe3164be_render,
6700
6714
  staticRenderFns,
6701
6715
  false,
6702
6716
  null,
package/lib/tabs.js CHANGED
@@ -264,20 +264,33 @@ var ajax = function ajax(_ref) {
264
264
  }).then(function () {
265
265
  var loginPage = getStorage('login') || getStorage('loginPage');
266
266
  if (loginPage) {
267
- win.top.location.href = loginPage;
267
+ var src = void 0;
268
+ if (!startWith(loginPage, ['http', '/'])) {
269
+ var pathname = win.top.location.pathname;
270
+ if (pathname !== '/') {
271
+ pathname = pathname.split('/');
272
+ pathname.splice(pathname.length - 1);
273
+ pathname = pathname.join('/');
274
+ }
275
+ src = pathname + loginPage.replace('./', '');
276
+ } else {
277
+ src = loginPage;
278
+ }
279
+ win.top.location.href = src;
268
280
  } else if (win.top.location.href.indexOf('main.html') > -1) {
269
281
  win.top.location.href = './login.html';
270
282
  } else {
271
283
  var hash = win.top.location.hash;
272
- if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
284
+ if (hash) {
273
285
  var len = win.top.location.href.indexOf(hash);
274
- var href = win.top.location.href.slice(0, len) + '#/login';
275
- win.top.location.href = href;
286
+ win.top.location.href = win.location.href.slice(0, len) + '#/login';
276
287
  } else {
277
288
  win.top.location.href = '/login.html';
278
289
  }
279
290
  }
280
- }).catch(function (e) {});
291
+ }).catch(function (e) {
292
+ sessionStorage.removeItem('remind');
293
+ });
281
294
  }, 1000));
282
295
  }
283
296
  } else if (response.data.rCode === 61) {