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.
package/src/index.js CHANGED
@@ -115,7 +115,7 @@ if (typeof window !== 'undefined' && window.Vue) {
115
115
  }
116
116
 
117
117
  export default {
118
- version: '0.4.14',
118
+ version: '0.4.15',
119
119
  install,
120
120
  Button,
121
121
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -1426,10 +1426,23 @@ const isLogged = function ({
1426
1426
  } else {
1427
1427
  const token = getStorage('token') || getStorage('Authorization');
1428
1428
  if (
1429
- Object.prototype.hasOwnProperty.call(to.query, 'serverId') &&
1429
+ !token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') &&
1430
1430
  Object.prototype.hasOwnProperty.call(to.query, 'authType')
1431
1431
  ) {
1432
- const url = win.top.location.href;
1432
+ let url = win.top.location.href;
1433
+ if (to.query.openType) {
1434
+ switch (to.query.openType) {
1435
+ case 'self':
1436
+ url = win.location.href;
1437
+ break;
1438
+ case 'blank':
1439
+ url = win.location.href;
1440
+ break;
1441
+ case 'parent':
1442
+ url = win.parent.location.href;
1443
+ break;
1444
+ }
1445
+ }
1433
1446
  ajax({
1434
1447
  method: 'post',
1435
1448
  url: authCenter,