fix: 修改订阅关于工作流的标识
This commit is contained in:
parent
3fc10962ae
commit
82aeb6b522
|
@ -106,7 +106,11 @@ const handleSearch = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
activeKey.value = menuStore.hasMenu('code') ? ['alarm', 'system-monitor', 'system-business','workflow-notification'] : ['alarm', 'system-monitor', 'system-business']
|
const keys = ['alarm', 'system-monitor', 'system-business']
|
||||||
|
if (menuStore.hasMenu('workflow')) {
|
||||||
|
keys.push('workflow-notification')
|
||||||
|
}
|
||||||
|
activeKey.value = keys
|
||||||
initData = getInitData()
|
initData = getInitData()
|
||||||
handleSearch();
|
handleSearch();
|
||||||
});
|
});
|
||||||
|
|
|
@ -72,6 +72,5 @@ const workflowNotice = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
export const getInitData = () =>{
|
export const getInitData = () =>{
|
||||||
let initData:any[]
|
return menuStore.hasMenu('workflow') ? [...systemNotice,...workflowNotice] : [...systemNotice]
|
||||||
return initData = menuStore.hasMenu('code') ? [...systemNotice,...workflowNotice] : [...systemNotice]
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue