Newer
Older
DH_Apicture / src / plugins / index.js
@zhangqy zhangqy on 29 Nov 506 bytes first commit
  1. import tab from './tab'
  2. import auth from './auth'
  3. import cache from './cache'
  4. import modal from './modal'
  5. import download from './download'
  6.  
  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.$cache = cache
  14. // 模态框对象
  15. app.config.globalProperties.$modal = modal
  16. // 下载文件
  17. app.config.globalProperties.$download = download
  18. }