提交 b6a795e9 编写于 作者: ibizdev's avatar ibizdev

lxm1993 发布系统代码 [TrainSys,网页端]

上级 b19fafd0
...@@ -264,8 +264,14 @@ export const AppMenu = defineComponent({ ...@@ -264,8 +264,14 @@ export const AppMenu = defineComponent({
onMounted(() => { onMounted(() => {
// 默认激活的菜单项 // 默认激活的菜单项
const defaultActiveMenuItem = c.model.allItems.find(item => { const defaultActiveMenuItem = c.model.allItems.find(item => {
return item.source.openDefault && !item.source.hidden; return (
item.source.openDefault &&
!item.source.hidden &&
c.menuItemsState[item.source.id].permitted
);
}); });
console.log('defaultActiveMenuItem', defaultActiveMenuItem);
if (defaultActiveMenuItem && !route.params.view2) { if (defaultActiveMenuItem && !route.params.view2) {
defaultActive.value = defaultActiveMenuItem.id; defaultActive.value = defaultActiveMenuItem.id;
onClick(defaultActive.value); onClick(defaultActive.value);
......
...@@ -1049,16 +1049,16 @@ ...@@ -1049,16 +1049,16 @@
"codeName" : "VMGroup2", "codeName" : "VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ] } ]
}, { }, {
......
...@@ -2227,16 +2227,16 @@ ...@@ -2227,16 +2227,16 @@
"codeName" : "VMGroup2", "codeName" : "VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ] } ]
} ], } ],
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册