项目结构调整 x 11 : 修改前端项目为 yudao-admin-ui
This commit is contained in:
15
yudao-admin-ui/src/directive/permission/index.js
Normal file
15
yudao-admin-ui/src/directive/permission/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import hasRole from './hasRole'
|
||||
import hasPermi from './hasPermi'
|
||||
|
||||
const install = function(Vue) {
|
||||
Vue.directive('hasRole', hasRole)
|
||||
Vue.directive('hasPermi', hasPermi)
|
||||
}
|
||||
|
||||
if (window.Vue) {
|
||||
window['hasRole'] = hasRole
|
||||
window['hasPermi'] = hasPermi
|
||||
Vue.use(install); // eslint-disable-line
|
||||
}
|
||||
|
||||
export default install
|
Reference in New Issue
Block a user