diff --git a/src/views/home/index-v2.vue b/src/views/home/index-v2.vue index 41a19074..372fc6fa 100644 --- a/src/views/home/index-v2.vue +++ b/src/views/home/index-v2.vue @@ -19,9 +19,12 @@ export default { } }, created() { - const deptName = sessionStorage.getItem('deptName') // 如果 deptName 包含 省公司 则显示ProvincialChart 否则 显示 MunicipalChart - this.isShowComponent = deptName.includes('省公司') ? 'ProvincialChart' : 'MunicipalChart' + // const deptName = sessionStorage.getItem('deptName') + // this.isShowComponent = deptName.includes('省公司') ? 'ProvincialChart' : 'MunicipalChart' + + const deptId = sessionStorage.getItem('companyId') + this.isShowComponent = deptId == 243 ? 'ProvincialChart' : 'MunicipalChart' }, methods: {}, }