Commit 45c5069a by 王志慧

更改判断条件

1 parent 5ffdb103
......@@ -372,7 +372,7 @@ export default {
this.accountLevel = this.$globalState.session.accountLevel
}
// 取消判断
this.showGh = window.location.host.indexOf('cgacar') == -1
this.showGh = window.location.host.indexOf('cgacar') != -1
if (this.showGh) this.judgeGh()
this.getCardContentFun()
this.getCardtypeList()
......
......@@ -463,7 +463,7 @@ export default {
}
}
let href = window.location.host
this.showGh = href.indexOf('cgacar') == -1
this.showGh = href.indexOf('cgacar') !== -1
},
mounted() {
......
......@@ -970,7 +970,7 @@ export default {
// 从域名判断是不是广汇的
diffHost() {
let href = window.location.host
this.showGh = href.indexOf('cgacar') == -1
this.showGh = href.indexOf('cgacar') !== -1
if (this.showGh) {
let idx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'erpMaterialNo')
let serviceCodeIdx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'serviceCode')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!