index.js 742 B

1234567891011121314151617181920212223
  1. import tab from './tab'
  2. import auth from './auth'
  3. import modal from './modal'
  4. import xy from './xy'
  5. import request from './request'
  6. import { useDict,getDictByValue,getDictByCode } from './dict'
  7. export default function installPlugins(app) {
  8. // 页签操作
  9. app.config.globalProperties.$tab = tab
  10. // 认证对象
  11. app.config.globalProperties.$auth = auth
  12. // 模态框对象
  13. app.config.globalProperties.$modal = modal
  14. // 处理数据
  15. app.config.globalProperties.$xy = xy
  16. //请求方法
  17. app.config.globalProperties.$request = request
  18. //数据字典
  19. app.config.globalProperties.$useDict = useDict
  20. app.config.globalProperties.$getDictByValue = getDictByValue
  21. app.config.globalProperties.$getDictByCode = getDictByCode
  22. }