diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 570df846d..ed298b0f2 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -214,7 +214,7 @@ export default { return ProjectIcon[projectName]; }, bgImg() { - const bgImgAll = process.env.VUE_APP_PRO === 'local' ? '' : bgImg; + const bgImgAll = process.env.VUE_APP_PRO === 'local' || this.$route.query.project == 'hyd' ? '' : bgImg; const synchronousLogin = ['IBP', 'LSW', 'CCTV', 'ISCS_LW', 'ISCS_CW', 'VR_PSD']; const imgMap = { ISCS_LW: bgIscsImg, @@ -240,9 +240,6 @@ export default { LSW: '检测教研机登录中' }; return this.$route.query.type ? textMap[this.$route.query.type] : ''; - }, - isLocal() { // 是否为本地项目 - return process.env.VUE_APP_PRO === 'local'; } }, created() { @@ -270,7 +267,7 @@ export default { }, mounted() { document.title = loginInfo[this.project].browserTitle || loginInfo[this.project].title; - if (this.syncLogin || process.env.VUE_APP_PRO !== 'local') { + if (this.syncLogin || !this.project.endsWith('hyd')) { this.loginRefresh(); } },