哈尔滨打包调整

This commit is contained in:
fan 2020-07-09 17:44:48 +08:00
parent 82c0cf200d
commit 3301d2bebf

View File

@ -214,7 +214,7 @@ export default {
return ProjectIcon[projectName]; return ProjectIcon[projectName];
}, },
bgImg() { 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 synchronousLogin = ['IBP', 'LSW', 'CCTV', 'ISCS_LW', 'ISCS_CW', 'VR_PSD'];
const imgMap = { const imgMap = {
ISCS_LW: bgIscsImg, ISCS_LW: bgIscsImg,
@ -240,9 +240,6 @@ export default {
LSW: '检测教研机登录中' LSW: '检测教研机登录中'
}; };
return this.$route.query.type ? textMap[this.$route.query.type] : ''; return this.$route.query.type ? textMap[this.$route.query.type] : '';
},
isLocal() { //
return process.env.VUE_APP_PRO === 'local';
} }
}, },
created() { created() {
@ -270,7 +267,7 @@ export default {
}, },
mounted() { mounted() {
document.title = loginInfo[this.project].browserTitle || loginInfo[this.project].title; 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(); this.loginRefresh();
} }
}, },