|
|
|
@ -379,6 +379,10 @@ function injectWorkflowSubMenus(menuNode) { |
|
|
|
const dictStore = useDictStore(); |
|
|
|
// 从数据字典加载流转状态项列表,实现真正的动态插拔
|
|
|
|
const statesDict = dictStore.getDictData('WORKFLOW_STATE') || []; |
|
|
|
if (statesDict.length === 0) { |
|
|
|
// 增加防空防丢保护:如果数据字典暂未就绪,直接返回以避免清空或覆盖原菜单项
|
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
const children = []; |
|
|
|
statesDict.forEach((item, index) => { |
|
|
|
|