config.ts 543 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * @Author: 文帅
  3. * @Date: 2022-03-08 16:37:24
  4. * @LastEditTime: 2022-03-08 17:35:36
  5. * @LastEditors: 文帅
  6. * @Description:
  7. */
  8. const developmentConfig = {
  9. name: 'development',
  10. baseUrl: 'https://twww.winhc.net/api'
  11. }
  12. const testConfig = {
  13. name: 'test',
  14. baseUrl: 'https://twww.winhc.net/api'
  15. }
  16. const productionConfig = {
  17. name: 'production',
  18. baseUrl: 'https://www.winhc.net/api'
  19. }
  20. const env = [developmentConfig, testConfig, productionConfig]
  21. export const config = env.find(item =>
  22. item.name === import.meta.env.MODE
  23. )!