config.ts 877 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * @Author: 文帅
  3. * @Date: 2022-03-08 16:37:24
  4. * @LastEditTime: 2022-04-20 17:04:23
  5. * @LastEditors: 狼牙
  6. * @Description:
  7. */
  8. const currentConfig = {
  9. downloadAppUrl: 'https://m.winhc.cn/wx-mobile/download/index.html',
  10. }
  11. const developmentConfig = {
  12. name: 'development',
  13. baseUrl: 'https://twww.winhc.net/api',
  14. commonUrl:'https://tm.winhc.net/wx-mobile/newMobile/#/',
  15. ...currentConfig
  16. }
  17. const testConfig = {
  18. name: 'test',
  19. baseUrl: 'https://twww.winhc.net/api',
  20. commonUrl:'https://tm.winhc.net/wx-mobile/newMobile/#/',
  21. ...currentConfig
  22. }
  23. const productionConfig = {
  24. name: 'production',
  25. baseUrl: 'https://www.winhc.net/api',
  26. commonUrl:'https://m.winhc.cn/wx-mobile/newMobile/#/',
  27. ...currentConfig
  28. }
  29. const env = [developmentConfig, testConfig, productionConfig]
  30. export const config = env.find(item =>
  31. item.name === import.meta.env.MODE
  32. )!