|
@@ -48,6 +48,8 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
+ // 所有菜单
|
|
|
+ await this.menusQueryAll();
|
|
|
// 当前菜单参数
|
|
|
this.code = this.$route.params.code;
|
|
|
const topahes = await this.topage();
|
|
@@ -56,13 +58,14 @@ export default {
|
|
|
this.parentCode = this.$route.query.parentCode;
|
|
|
// 获取一例菜单
|
|
|
this.menu = this.$setChildrenSession({ menus: this.menusall, iscode: this.parentCode });
|
|
|
+ console.log(this.menu);
|
|
|
// 控制左侧菜单当前选项
|
|
|
this.$refs.letnav.setIndex();
|
|
|
await this.filterQuery();
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions(['contentsList']),
|
|
|
+ ...mapActions(['contentsList', 'menusQueryAll']),
|
|
|
// 查询函数
|
|
|
async filterQuery ({ filter = {}, paging = { page: 0, size: 10 } } = {}) {
|
|
|
filter.bind = this.code;
|