From 578498a4c7b0a2a3671f178eb9e9bfab006ffd7d Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 29 Jan 2026 11:07:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/index-v2.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: {}, }