提交 f1b77f76 编写于 作者: LUCIFER-ZHU's avatar LUCIFER-ZHU

update:更新菜单默认选中

上级 23006170
......@@ -72,13 +72,13 @@ export class MenuControl extends ControlBase {
const dataRef = toRef(this.state, 'menus');
if (route.matched?.length == 2) { // 存在二级路由
const [{ }, matched] = route.matched;
const appFunc: any = funcs.find((func: any) => Object.is(func.routePath, matched.path) && Object.is(func.funcType, 'APPVIEW'));
const appFunc: any = funcs.find((func: any) => Object.is(func.routePath, matched.path) && Object.is(func.appFuncType, 'APPVIEW'));
if (appFunc) {
this.computeMenuSelect(dataRef.value, appFunc.funcTag);
}
return;
} else if (defaultView) { // 存在默认视图
const appFunc: any = funcs.find((func: any) => Object.is(func.appView, defaultView) && Object.is(func.funcType, 'APPVIEW'));
const appFunc: any = funcs.find((func: any) => Object.is(func.viewCodeName, defaultView) && Object.is(func.appFuncType, 'APPVIEW'));
if (appFunc) {
this.computeMenuSelect(dataRef.value, appFunc.funcTag);
}
......
export const viewState = {
{{> @macro/front-end/views/view-base-config.hbs}}
{{#if page.defPSAppView}}
defaultView: '{{page.defPSAppView.codeName}}',
{{/if}}
};
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册