@lambo-design/shared 1.0.0-beta.35 → 1.0.0-beta.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/shared",
3
- "version": "1.0.0-beta.35",
3
+ "version": "1.0.0-beta.37",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
package/utils/platform.js CHANGED
@@ -1,9 +1,9 @@
1
- import Bus from './bus';
2
-
3
- export const TOKEN_KEY = 'v8-token'
1
+ export const TOKEN_KEY = 'lambo-token'
4
2
 
5
3
  export const COOKIE_KEY = 'lambo-sso-key'
6
4
 
5
+ export const SSO_TOKEN_KEY = 'lambo-sso-token'
6
+
7
7
  export function objEqual(obj1, obj2) {
8
8
  const keysArr1 = Object.keys(obj1)
9
9
  const keysArr2 = Object.keys(obj2)
@@ -584,13 +584,10 @@ export const getDelTagIndex = (tagList, name) => {
584
584
  }
585
585
 
586
586
  export const turnToPage = (vm, name ,url) =>{
587
- console.log("window.top=",window.top)
588
- if (window.top && window.top.location.href == window.location.href) {
589
- console.log("url="+url)
590
- /*sessionStorage.removeItem('activeName')
591
- window.parent.location.href = url;*/
587
+ if (window.top && window.top.location.href != window.location.href) {
588
+ sessionStorage.removeItem('activeName')
589
+ window.parent.location.href = url;
592
590
  } else {
593
- console.log("name="+name)
594
591
  vm.$router.push({
595
592
  name: name
596
593
  })