提交 b95041bf 编写于 作者: tony001's avatar tony001

首页导航模式 --- fix6

上级 f3df2777
......@@ -25,7 +25,6 @@ import view_${ctrl.getName()} from '@widgets/app/${srffilepath2(ctrl.getCodeName
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.initNavData();
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
......
......@@ -59,7 +59,7 @@
* @type {*}
* @memberof ${srfclassname('${view.name}')}Base
*/
public navDataService = NavDataService.getInstance();
public navDataService = NavDataService.getInstance({store:this.$store});
/**
* 应用上下文
......@@ -212,9 +212,9 @@
*
* @memberof ${srfclassname('${view.name}')}Base
*/
public initNavData(){
public initNavData(data:any = null){
if(this.viewDefaultUsage){
this.navDataService.addNavData({id:'${srffilepath2(view.getCodeName())}',title:this.$t(this.model.srfTitle),data:null,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
this.navDataService.addNavData({id:'${srffilepath2(view.getCodeName())}',title:this.$t(this.model.srfTitle),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
}
}
......
......@@ -33,7 +33,7 @@
* @type {string}
* @memberof ${srfclassname('${view.name}')}Base
*/
public navModel:string = "tab";
public navModel:string = "route";
/**
* 抽屉状态
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册