diff --git a/src/components/360View/followUpRecord/formList/invalid.vue b/src/components/360View/followUpRecord/formList/invalid.vue index 4dd4083..38f3100 100644 --- a/src/components/360View/followUpRecord/formList/invalid.vue +++ b/src/components/360View/followUpRecord/formList/invalid.vue @@ -52,7 +52,7 @@ export default { } }, created() { - this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') + this.isDev = process.env.VUE_APP_NODE_ENV === 'staging' if (this.jsonText) { this.radio = this.jsonText && JSON.parse(this.jsonText).radio } else { diff --git a/src/components/360View/followUpRecord/formList/outFollow.vue b/src/components/360View/followUpRecord/formList/outFollow.vue index 02d98c5..3a574d7 100644 --- a/src/components/360View/followUpRecord/formList/outFollow.vue +++ b/src/components/360View/followUpRecord/formList/outFollow.vue @@ -278,7 +278,7 @@ export default { } }, created() { - this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') + this.isDev = process.env.VUE_APP_NODE_ENV === 'staging' // 初始化赋空 const data = { patientData: this.patientData, diff --git a/src/components/360View/followUpRecord/formList/phoneFollow.vue b/src/components/360View/followUpRecord/formList/phoneFollow.vue index 3027c13..ecd4282 100644 --- a/src/components/360View/followUpRecord/formList/phoneFollow.vue +++ b/src/components/360View/followUpRecord/formList/phoneFollow.vue @@ -151,7 +151,7 @@ export default { } }, created() { - this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') + this.isDev = process.env.VUE_APP_NODE_ENV === 'staging' this.initData = _.cloneDeep(this.followData) if (this.jsonText) { this.followData = JSON.parse(this.jsonText) diff --git a/src/components/360View/index.vue b/src/components/360View/index.vue index edebc0e..5da9290 100644 --- a/src/components/360View/index.vue +++ b/src/components/360View/index.vue @@ -329,7 +329,7 @@ export default { } }, created() { - this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') + this.isDev = process.env.VUE_APP_NODE_ENV === 'staging' this.jzNumber = window.sessionStorage.getItem('jzNumber') this.infoHidden = this.$route.query.infoHidden && JSON.parse(this.$route.query.infoHidden) }, diff --git a/src/page-subspecialty/views/main.vue b/src/page-subspecialty/views/main.vue index d618d53..c9fec83 100644 --- a/src/page-subspecialty/views/main.vue +++ b/src/page-subspecialty/views/main.vue @@ -44,7 +44,7 @@ export default { $route: 'routeHandle' }, created() { - this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') + this.isDev = process.env.VUE_APP_NODE_ENV === 'staging' this.windowResizeHandle() this.routeHandle(this.$route) Promise.all([ diff --git a/src/page-subspecialty/views/pages/login.vue b/src/page-subspecialty/views/pages/login.vue index aef7b40..f1fb86b 100644 --- a/src/page-subspecialty/views/pages/login.vue +++ b/src/page-subspecialty/views/pages/login.vue @@ -102,7 +102,7 @@ export default { } }, created() { - this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') + this.isDev = process.env.VUE_APP_NODE_ENV === 'staging' this.getCaptcha() }, methods: {