| | |
| | | |
| | | // const ENV_DEV = '127.0.0.1' // dev |
| | | // const ENV_DEV = '127.0.0.1:8086' // dev |
| | | const ENV_DEV = 'zhapi.datacme.com' // dev |
| | | const ENV_DEV = 'api.crypt.mom' // dev |
| | | |
| | | // const ENV_PRO = window.location.hostname // 接口域名跟随 H5 |
| | | // const ENV_PRO = "127.0.0.1" |
| | | // const ENV_PRO = "127.0.0.1:8086" |
| | | const ENV_PRO = "zhapi.datacme.com" |
| | | const ENV_PRO = "api.crypt.mom" |
| | | // 避免打包出错务必把 app域名的注释要放在在本地ENV_PRO的下面 |
| | | // const ENV_PRO = 'foilwm.com' // app域名 |
| | | |
| | |
| | | let ws_url = '' |
| | | let host_url = '' |
| | | if (import.meta.env.MODE === 'development') { |
| | | host_url = 'http://' + ENV_DEV |
| | | base_url = 'http://' + ENV_DEV |
| | | host_url = 'https://' + ENV_DEV |
| | | base_url = 'https://' + ENV_DEV |
| | | ws_url = 'wss://' + ENV_DEV + '/api/websocket' |
| | | } else { |
| | | host_url = 'https://' + ENV_PRO |
| | |
| | | } |
| | | export const BASE_URL = base_url |
| | | export const WS_URL = ws_url |
| | | export const IMG_PATH = host_url |
| | | export const IMG_PATH = 'https://img.crypt.mom' |
| | | export const HOST_URL = host_url |
| | | |
| | | export default { |