feat: add function of filtering menu data through authority;

新增:增加通过权限过滤菜单数据的功能;
This commit is contained in:
iczer
2020-08-31 20:51:58 +08:00
parent cbda23e3db
commit 1fb75f491d
4 changed files with 29 additions and 4 deletions

View File

@@ -56,8 +56,8 @@ export default {
},
computed: {
...mapState('setting', ['isMobile', 'theme', 'layout', 'footerLinks', 'copyright', 'fixedHeader', 'fixedSideBar',
'hideSetting', 'menuData']),
...mapGetters('setting', ['firstMenu', 'subMenu']),
'hideSetting']),
...mapGetters('setting', ['firstMenu', 'subMenu', 'menuData']),
sideMenuWidth() {
return this.collapsed ? '80px' : '256px'
},