@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 +1 -1
- package/utils/platform.js +6 -9
package/package.json
CHANGED
package/utils/platform.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
588
|
-
|
|
589
|
-
|
|
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
|
})
|