统一小程序多环境请求地址
This commit is contained in:
@@ -127,12 +127,12 @@ const DEFAULT_DOMAINS = {
|
||||
local: 'http://127.0.0.1:80',
|
||||
tunnel: 'http://wcy111.top:18888',
|
||||
'dev-remote': 'http://wcy111.top:18888',
|
||||
trial: 'https://yunail.art',
|
||||
trial: 'https://sit.yunail.art',
|
||||
release: 'https://yunail.art'
|
||||
}
|
||||
|
||||
const DOMAIN_MAP = mergeDomains(DEFAULT_DOMAINS, localOverride.domains)
|
||||
const DEFAULT_DEVELOP_TARGET = IS_DEVTOOLS ? 'local' : 'dev-remote'
|
||||
const DEFAULT_DEVELOP_TARGET = 'local'
|
||||
const DEVELOP_TARGET = Object.prototype.hasOwnProperty.call(localOverride, 'developTarget')
|
||||
? String(localOverride.developTarget)
|
||||
: DEFAULT_DEVELOP_TARGET
|
||||
|
||||
Reference in New Issue
Block a user