adtec-core-package 1.7.4 → 1.7.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 +1 -1
- package/src/stores/permissionStore.ts +22 -10
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import { useEventBus } from '@vueuse/core'
|
|
|
4
4
|
import WujieVue from 'wujie-vue3'
|
|
5
5
|
import Utf8 from 'crypto-js/enc-utf8'
|
|
6
6
|
import Base64 from 'crypto-js/enc-base64'
|
|
7
|
+
import { nextTick } from 'vue'
|
|
7
8
|
const bus = useEventBus<string>('ActiveMenuInfo')
|
|
8
9
|
export const permissionStore = defineStore("permissionStore",{
|
|
9
10
|
state: () => ({
|
|
@@ -78,22 +79,33 @@ export const permissionStore = defineStore("permissionStore",{
|
|
|
78
79
|
}
|
|
79
80
|
this.activeMenuInfo = menuInfo
|
|
80
81
|
bus.emit()
|
|
82
|
+
console.log(this.openMenuInfo)
|
|
81
83
|
},
|
|
82
84
|
/**
|
|
83
85
|
* 移除打开的菜单
|
|
84
86
|
* @param menuInfo
|
|
85
87
|
*/
|
|
86
88
|
removeOpenMenuInfo(menuInfo: ISysMenuInfoVo) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
nextTick(()=>{
|
|
90
|
+
const find = this.openMenuInfo.find((c) => c.id === menuInfo.id)
|
|
91
|
+
if (find) {
|
|
92
|
+
this.openMenuInfo.splice(this.openMenuInfo.indexOf(find!), 1)
|
|
93
|
+
}
|
|
94
|
+
if (menuInfo.applicationModule !== 'system' && menuInfo.isLink !== 1) {
|
|
95
|
+
//关闭子应用菜单
|
|
96
|
+
WujieVue.bus.$emit('wujie-router-close', menuInfo)
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
// setTimeout(() => {
|
|
100
|
+
// const find = this.openMenuInfo.find((c) => c.id === menuInfo.id)
|
|
101
|
+
// if (find) {
|
|
102
|
+
// this.openMenuInfo.splice(this.openMenuInfo.indexOf(find!), 1)
|
|
103
|
+
// }
|
|
104
|
+
// if (menuInfo.applicationModule !== 'system' && menuInfo.isLink !== 1) {
|
|
105
|
+
// //关闭子应用菜单
|
|
106
|
+
// WujieVue.bus.$emit('wujie-router-close', menuInfo)
|
|
107
|
+
// }
|
|
108
|
+
// }, 100)
|
|
97
109
|
},
|
|
98
110
|
/**
|
|
99
111
|
* 移除所有打开的菜单
|