diff --git a/src/components/360View/followUpRecord/formList/invalid.vue b/src/components/360View/followUpRecord/formList/invalid.vue index 1a5a4cb..4dd4083 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 = window.SITE_CONFIG['apiURL'].includes('47') + this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') 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 c3c02cf..02d98c5 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 = window.SITE_CONFIG['apiURL'].includes('47') + this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') // 初始化赋空 const data = { patientData: this.patientData, diff --git a/src/components/360View/followUpRecord/formList/phoneFollow.vue b/src/components/360View/followUpRecord/formList/phoneFollow.vue index 69aacc4..3027c13 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 = window.SITE_CONFIG['apiURL'].includes('47') + this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') 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 95cf3aa..edebc0e 100644 --- a/src/components/360View/index.vue +++ b/src/components/360View/index.vue @@ -329,7 +329,7 @@ export default { } }, created() { - this.isDev = window.SITE_CONFIG['apiURL'].includes('47') + this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') 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 971eaf6..d618d53 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 = window.SITE_CONFIG['apiURL'].includes('47') + this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') 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 757c640..aef7b40 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 = window.SITE_CONFIG['apiURL'].includes('47') + this.isDev = process.env.VUE_APP_LOGIN_URL.includes('47') this.getCaptcha() }, methods: {