config.ts 352 B

12345678910111213141516171819202122
  1. let baseUrl = '';
  2. const VUE_APP_REMOTE_HOST = process.env.VUE_APP_REMOTE_HOST;
  3. // #ifndef H5
  4. // #endif
  5. baseUrl = `https://${VUE_APP_REMOTE_HOST}`;
  6. // #ifdef H5
  7. if(location.host === 'yzl-h5-dev.datounet.com'){
  8. baseUrl = `https://yzl-api-dev-go.datounet.com`;
  9. }
  10. // #endif
  11. const config = {
  12. baseUrl,
  13. dataType: 'text',
  14. };
  15. export default config;