添加指令:v-auth,根据当前角色来选择是否展示页面某些元素
This commit is contained in:
@@ -47,6 +47,11 @@ Vue.use(APlayer, {
|
||||
});
|
||||
|
||||
|
||||
import {auth} from '@/directive/auth'
|
||||
// 按钮权限指令
|
||||
auth(Vue)
|
||||
|
||||
|
||||
new Vue({
|
||||
render: h => h(App),
|
||||
router,
|
||||
@@ -56,6 +61,3 @@ new Vue({
|
||||
//引入echarts
|
||||
import echarts from 'echarts'
|
||||
Vue.prototype.$echarts = echarts;
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user