代理后端前端代码(带权限管理)
zj
2024-06-03 59782819ef818c3457aaf750a0358b485de3c249
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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