eoss-ui 0.4.14 → 0.4.15

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.
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
1467
1467
  next();
1468
1468
  } else {
1469
1469
  var token = getStorage('token') || getStorage('Authorization');
1470
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1471
1471
  var url = win.top.location.href;
1472
+ if (to.query.openType) {
1473
+ switch (to.query.openType) {
1474
+ case 'self':
1475
+ url = win.location.href;
1476
+ break;
1477
+ case 'blank':
1478
+ url = win.location.href;
1479
+ break;
1480
+ case 'parent':
1481
+ url = win.parent.location.href;
1482
+ break;
1483
+ }
1484
+ }
1472
1485
  ajax({
1473
1486
  method: 'post',
1474
1487
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
package/lib/button.js CHANGED
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
1467
1467
  next();
1468
1468
  } else {
1469
1469
  var token = getStorage('token') || getStorage('Authorization');
1470
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1471
1471
  var url = win.top.location.href;
1472
+ if (to.query.openType) {
1473
+ switch (to.query.openType) {
1474
+ case 'self':
1475
+ url = win.location.href;
1476
+ break;
1477
+ case 'blank':
1478
+ url = win.location.href;
1479
+ break;
1480
+ case 'parent':
1481
+ url = win.parent.location.href;
1482
+ break;
1483
+ }
1484
+ }
1472
1485
  ajax({
1473
1486
  method: 'post',
1474
1487
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
1467
1467
  next();
1468
1468
  } else {
1469
1469
  var token = getStorage('token') || getStorage('Authorization');
1470
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1471
1471
  var url = win.top.location.href;
1472
+ if (to.query.openType) {
1473
+ switch (to.query.openType) {
1474
+ case 'self':
1475
+ url = win.location.href;
1476
+ break;
1477
+ case 'blank':
1478
+ url = win.location.href;
1479
+ break;
1480
+ case 'parent':
1481
+ url = win.parent.location.href;
1482
+ break;
1483
+ }
1484
+ }
1472
1485
  ajax({
1473
1486
  method: 'post',
1474
1487
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
1466
1466
  next();
1467
1467
  } else {
1468
1468
  var token = getStorage('token') || getStorage('Authorization');
1469
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1469
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
1470
  var url = win.top.location.href;
1471
+ if (to.query.openType) {
1472
+ switch (to.query.openType) {
1473
+ case 'self':
1474
+ url = win.location.href;
1475
+ break;
1476
+ case 'blank':
1477
+ url = win.location.href;
1478
+ break;
1479
+ case 'parent':
1480
+ url = win.parent.location.href;
1481
+ break;
1482
+ }
1483
+ }
1471
1484
  ajax({
1472
1485
  method: 'post',
1473
1486
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
package/lib/data-table.js CHANGED
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
1466
1466
  next();
1467
1467
  } else {
1468
1468
  var token = getStorage('token') || getStorage('Authorization');
1469
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1469
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
1470
  var url = win.top.location.href;
1471
+ if (to.query.openType) {
1472
+ switch (to.query.openType) {
1473
+ case 'self':
1474
+ url = win.location.href;
1475
+ break;
1476
+ case 'blank':
1477
+ url = win.location.href;
1478
+ break;
1479
+ case 'parent':
1480
+ url = win.parent.location.href;
1481
+ break;
1482
+ }
1483
+ }
1471
1484
  ajax({
1472
1485
  method: 'post',
1473
1486
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
1467
1467
  next();
1468
1468
  } else {
1469
1469
  var token = getStorage('token') || getStorage('Authorization');
1470
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1471
1471
  var url = win.top.location.href;
1472
+ if (to.query.openType) {
1473
+ switch (to.query.openType) {
1474
+ case 'self':
1475
+ url = win.location.href;
1476
+ break;
1477
+ case 'blank':
1478
+ url = win.location.href;
1479
+ break;
1480
+ case 'parent':
1481
+ url = win.parent.location.href;
1482
+ break;
1483
+ }
1484
+ }
1472
1485
  ajax({
1473
1486
  method: 'post',
1474
1487
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
package/lib/dialog.js CHANGED
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
1466
1466
  next();
1467
1467
  } else {
1468
1468
  var token = getStorage('token') || getStorage('Authorization');
1469
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1469
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
1470
  var url = win.top.location.href;
1471
+ if (to.query.openType) {
1472
+ switch (to.query.openType) {
1473
+ case 'self':
1474
+ url = win.location.href;
1475
+ break;
1476
+ case 'blank':
1477
+ url = win.location.href;
1478
+ break;
1479
+ case 'parent':
1480
+ url = win.parent.location.href;
1481
+ break;
1482
+ }
1483
+ }
1471
1484
  ajax({
1472
1485
  method: 'post',
1473
1486
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
1466
1466
  next();
1467
1467
  } else {
1468
1468
  var token = getStorage('token') || getStorage('Authorization');
1469
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1469
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
1470
  var url = win.top.location.href;
1471
+ if (to.query.openType) {
1472
+ switch (to.query.openType) {
1473
+ case 'self':
1474
+ url = win.location.href;
1475
+ break;
1476
+ case 'blank':
1477
+ url = win.location.href;
1478
+ break;
1479
+ case 'parent':
1480
+ url = win.parent.location.href;
1481
+ break;
1482
+ }
1483
+ }
1471
1484
  ajax({
1472
1485
  method: 'post',
1473
1486
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -65665,7 +65678,7 @@ if (typeof window !== 'undefined' && window.Vue) {
65665
65678
  }
65666
65679
 
65667
65680
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
65668
- version: '0.4.14',
65681
+ version: '0.4.15',
65669
65682
  install: install,
65670
65683
  Button: packages_button,
65671
65684
  ButtonGroup: button_group,
package/lib/flow-group.js CHANGED
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
1467
1467
  next();
1468
1468
  } else {
1469
1469
  var token = getStorage('token') || getStorage('Authorization');
1470
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1471
1471
  var url = win.top.location.href;
1472
+ if (to.query.openType) {
1473
+ switch (to.query.openType) {
1474
+ case 'self':
1475
+ url = win.location.href;
1476
+ break;
1477
+ case 'blank':
1478
+ url = win.location.href;
1479
+ break;
1480
+ case 'parent':
1481
+ url = win.parent.location.href;
1482
+ break;
1483
+ }
1484
+ }
1472
1485
  ajax({
1473
1486
  method: 'post',
1474
1487
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
package/lib/flow-list.js CHANGED
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
1466
1466
  next();
1467
1467
  } else {
1468
1468
  var token = getStorage('token') || getStorage('Authorization');
1469
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1469
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
1470
  var url = win.top.location.href;
1471
+ if (to.query.openType) {
1472
+ switch (to.query.openType) {
1473
+ case 'self':
1474
+ url = win.location.href;
1475
+ break;
1476
+ case 'blank':
1477
+ url = win.location.href;
1478
+ break;
1479
+ case 'parent':
1480
+ url = win.parent.location.href;
1481
+ break;
1482
+ }
1483
+ }
1471
1484
  ajax({
1472
1485
  method: 'post',
1473
1486
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
package/lib/flow.js CHANGED
@@ -1466,8 +1466,21 @@ var isLogged = function isLogged(_ref8) {
1466
1466
  next();
1467
1467
  } else {
1468
1468
  var token = getStorage('token') || getStorage('Authorization');
1469
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1469
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
1470
  var url = win.top.location.href;
1471
+ if (to.query.openType) {
1472
+ switch (to.query.openType) {
1473
+ case 'self':
1474
+ url = win.location.href;
1475
+ break;
1476
+ case 'blank':
1477
+ url = win.location.href;
1478
+ break;
1479
+ case 'parent':
1480
+ url = win.parent.location.href;
1481
+ break;
1482
+ }
1483
+ }
1471
1484
  ajax({
1472
1485
  method: 'post',
1473
1486
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
package/lib/form.js CHANGED
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
1467
1467
  next();
1468
1468
  } else {
1469
1469
  var token = getStorage('token') || getStorage('Authorization');
1470
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1471
1471
  var url = win.top.location.href;
1472
+ if (to.query.openType) {
1473
+ switch (to.query.openType) {
1474
+ case 'self':
1475
+ url = win.location.href;
1476
+ break;
1477
+ case 'blank':
1478
+ url = win.location.href;
1479
+ break;
1480
+ case 'parent':
1481
+ url = win.parent.location.href;
1482
+ break;
1483
+ }
1484
+ }
1472
1485
  ajax({
1473
1486
  method: 'post',
1474
1487
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
1467
1467
  next();
1468
1468
  } else {
1469
1469
  var token = getStorage('token') || getStorage('Authorization');
1470
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1471
1471
  var url = win.top.location.href;
1472
+ if (to.query.openType) {
1473
+ switch (to.query.openType) {
1474
+ case 'self':
1475
+ url = win.location.href;
1476
+ break;
1477
+ case 'blank':
1478
+ url = win.location.href;
1479
+ break;
1480
+ case 'parent':
1481
+ url = win.parent.location.href;
1482
+ break;
1483
+ }
1484
+ }
1472
1485
  ajax({
1473
1486
  method: 'post',
1474
1487
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
package/lib/handler.js CHANGED
@@ -1467,8 +1467,21 @@ var isLogged = function isLogged(_ref8) {
1467
1467
  next();
1468
1468
  } else {
1469
1469
  var token = getStorage('token') || getStorage('Authorization');
1470
- if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1470
+ if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1471
1471
  var url = win.top.location.href;
1472
+ if (to.query.openType) {
1473
+ switch (to.query.openType) {
1474
+ case 'self':
1475
+ url = win.location.href;
1476
+ break;
1477
+ case 'blank':
1478
+ url = win.location.href;
1479
+ break;
1480
+ case 'parent':
1481
+ url = win.parent.location.href;
1482
+ break;
1483
+ }
1484
+ }
1472
1485
  ajax({
1473
1486
  method: 'post',
1474
1487
  url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],