提交 fad41af1 编写于 作者: RedPig97's avatar RedPig97

update: 临时添加首页路由(视图类型、部件类型)

上级 2d6ab5f1
...@@ -91,7 +91,7 @@ export class MenuControl extends ControlBase { ...@@ -91,7 +91,7 @@ export class MenuControl extends ControlBase {
} }
let item = this.compute(dataRef.value, defaultSelectRef.value[0]); let item = this.compute(dataRef.value, defaultSelectRef.value[0]);
if (Object.keys(item).length > 0 && !item.hidden) { if (Object.keys(item).length > 0 && !item.hidden) {
this.menuClick(item); this.handleMenuClick(item);
} }
} }
......
...@@ -14,6 +14,22 @@ const routes = [ ...@@ -14,6 +14,22 @@ const routes = [
}, },
component: () => import("@views/{{spinalCase app.defaultPSAppIndexView.psAppModule.codeName}}/{{spinalCase app.defaultPSAppIndexView.codeName}}"), component: () => import("@views/{{spinalCase app.defaultPSAppIndexView.psAppModule.codeName}}/{{spinalCase app.defaultPSAppIndexView.codeName}}"),
children: [ children: [
// 临时提交首页视图路由 begin
{
path: "examples/:example?/views/viewtypeindexview",
meta: {
tag:'ViewTypeIndexView'
},
component: () => import("@views/sample/view-type-index-view"),
},
{
path: "examples/:example?/views/ctrltypeindexview",
meta: {
tag:'CtrlTypeIndexView'
},
component: () => import("@views/sample/ctrl-type-index-view"),
},
// 临时提交首页视图路由 end
{{#each app.appEntityResources as |appEntityResource|}} {{#each app.appEntityResources as |appEntityResource|}}
{{#if appEntityResource.appDataEntity.allPSAppViews}} {{#if appEntityResource.appDataEntity.allPSAppViews}}
{{#each appEntityResource.appDataEntity.allPSAppViews as |appView|}} {{#each appEntityResource.appDataEntity.allPSAppViews as |appView|}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册