adtec-core-package 1.8.4 → 1.8.5
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
|
@@ -30,41 +30,27 @@ export const permissionStore = defineStore({
|
|
|
30
30
|
*/
|
|
31
31
|
getActiveMenuInfoLevel1(): ISysMenuInfoVo {
|
|
32
32
|
//@ts-ignore
|
|
33
|
-
|
|
34
|
-
const data=JSON.parse(Base64.parse(sessionStorage.getItem("permissionStore")+"").toString(Utf8))
|
|
35
|
-
return data.activeMenuInfoLevel1
|
|
36
|
-
}else{
|
|
37
|
-
return this.activeMenuInfoLevel1
|
|
38
|
-
}
|
|
33
|
+
return this.activeMenuInfoLevel1
|
|
39
34
|
},
|
|
40
35
|
/**
|
|
41
36
|
* 获取当前菜单
|
|
42
37
|
*/
|
|
43
38
|
getActiveMenuInfo(): ISysMenuInfoVo {
|
|
44
39
|
//@ts-ignore
|
|
45
|
-
|
|
46
|
-
const data=JSON.parse(Base64.parse(sessionStorage.getItem("permissionStore")+"").toString(Utf8))
|
|
47
|
-
return data.activeMenuInfo
|
|
48
|
-
}else{
|
|
49
|
-
return this.activeMenuInfo
|
|
50
|
-
}
|
|
40
|
+
return this.activeMenuInfo
|
|
51
41
|
},
|
|
52
42
|
/**
|
|
53
43
|
* 获取已经打开的菜单
|
|
54
44
|
*/
|
|
55
45
|
getOpenMenuInfo(): ISysMenuInfoVo[] {
|
|
56
|
-
|
|
57
|
-
console.log(window.__POWERED_BY_WUJIE__)
|
|
58
|
-
//@ts-ignore
|
|
59
|
-
if(window.__POWERED_BY_WUJIE__){
|
|
60
|
-
const data=JSON.parse(Base64.parse(sessionStorage.getItem("permissionStore")+"").toString(Utf8))
|
|
61
|
-
return data.openMenuInfo
|
|
62
|
-
}else{
|
|
63
|
-
return this.openMenuInfo
|
|
64
|
-
}
|
|
46
|
+
return this.openMenuInfo
|
|
65
47
|
},
|
|
66
48
|
},
|
|
67
49
|
actions: {
|
|
50
|
+
getOpenMenuInfoWujie(){
|
|
51
|
+
const data=JSON.parse(Base64.parse(sessionStorage.getItem("permissionStore")+"").toString(Utf8))
|
|
52
|
+
return data.openMenuInfo
|
|
53
|
+
},
|
|
68
54
|
/**
|
|
69
55
|
* 判断是否有按钮权限
|
|
70
56
|
* @param operCode
|