luoyb
2021-03-12 4e6b24f719a8a44eb8efd9c47e846cf86137e205
src/main.js
@@ -21,11 +21,13 @@
import Selectuser from './views/user/selectuser'
import Selectdept from './views/user/selectdept'
import uploadfj from './views/yunpan/uploadfj'
import { selectDictLabel } from './utils/ruoyi'
import { getDicts } from './api/data'
const Plugins = [
  hasPermission,
  hasNoPermission,
  hasAnyPermission
  hasAnyPermission,
  getDicts
]
Plugins.map((plugin) => {
@@ -39,11 +41,12 @@
Vue.component('Selectuser', Selectuser)
Vue.component('Selectdept', Selectdept)
Vue.component('uploadfj', uploadfj)
Vue.prototype.getDicts = getDicts
Vue.prototype.$post = request.post
Vue.prototype.$get = request.get
Vue.prototype.$put = request.put
Vue.prototype.$delete = request.delete
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.$download = request.download
Vue.prototype.$upload = request.upload
Vue.prototype.$login = request.login