luoyb
2024-05-16 4cce4a5d09d5c8ed86f241cd70b6369344d2dfce
src/main.js
@@ -18,10 +18,16 @@
import * as filters from './filters' // global filters
import { hasPermission, hasNoPermission, hasAnyPermission } from './utils/permissionDirect'
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) => {
@@ -32,10 +38,15 @@
  i18n: (key, value) => i18n.t(key, value)
})
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