1234567891011121314151617181920212223 |
- import tab from './tab'
- import auth from './auth'
- import modal from './modal'
- import xy from './xy'
- import request from './request'
- import { useDict,getDictByValue,getDictByCode } from './dict'
- export default function installPlugins(app) {
- // 页签操作
- app.config.globalProperties.$tab = tab
- // 认证对象
- app.config.globalProperties.$auth = auth
- // 模态框对象
- app.config.globalProperties.$modal = modal
- // 处理数据
- app.config.globalProperties.$xy = xy
- //请求方法
- app.config.globalProperties.$request = request
- //数据字典
- app.config.globalProperties.$useDict = useDict
- app.config.globalProperties.$getDictByValue = getDictByValue
- app.config.globalProperties.$getDictByCode = getDictByCode
- }
|