Commit a3db6c65 by 前端

Merge branch 'zq_dev_v2.6.0' into 'v2.6.0'

环境判断错误bug

See merge request !229
2 parents 52e4c1a5 ac787325
...@@ -305,7 +305,7 @@ export default { ...@@ -305,7 +305,7 @@ export default {
const params = { const params = {
appId, appId,
path: 'packageEquity/pages/directional/directional', path: 'packageEquity/pages/directional/directional',
envVersion: process.env.NODE_ENV === 'production' ? 'release' : 'trial', envVersion: this.getEnvVersion(),
scene: `id=${this.curId}&merchantId=${merchantId}&staffUUID=${staffId}` scene: `id=${this.curId}&merchantId=${merchantId}&staffUUID=${staffId}`
} }
this.imgLoading = true this.imgLoading = true
...@@ -318,6 +318,14 @@ export default { ...@@ -318,6 +318,14 @@ export default {
this.imgLoading = false this.imgLoading = false
}) })
}, },
getEnvVersion() {
const host = window.location.host
if (host.indexOf('beta') > -1 || host.indexOf('test') > -1) {
return 'trial'
} else {
return 'release'
}
},
getAppId() { getAppId() {
const host = window.location.host const host = window.location.host
if (host.indexOf('beta') > -1) { if (host.indexOf('beta') > -1) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!