Rap 原分销系统代码Web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 line
798B

  1. // 适配 Nginx 反向代理
  2. const baseUrl = process.env.VUE_APP_BASE_API === '/' ? '' : process.env.VUE_APP_BASE_API
  3. const api = {
  4. state: {
  5. // 部署包上传
  6. deployUploadApi: baseUrl + '/api/deploy/upload',
  7. // SQL脚本上传
  8. databaseUploadApi: baseUrl + '/api/database/upload',
  9. // 图片上传
  10. imagesUploadApi: baseUrl + '/api/localStorage/pictures',
  11. // 修改头像
  12. updateAvatarApi: baseUrl + '/api/users/updateAvatar',
  13. // 上传文件到七牛云
  14. qiNiuUploadApi: baseUrl + '/api/qiNiuContent',
  15. // Sql 监控
  16. sqlApi: baseUrl + '/druid/index.html',
  17. // swagger
  18. swaggerApi: baseUrl + '/swagger-ui.html',
  19. // 文件上传
  20. fileUploadApi: baseUrl + '/api/localStorage',
  21. // baseUrl,
  22. baseApi: baseUrl
  23. }
  24. }
  25. export default api