From 153835b184d976184882e269e564726f9e420310 Mon Sep 17 00:00:00 2001 From: mac Date: Thu, 9 Jul 2026 18:18:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9D=9E=E6=80=BB=E8=A7=88=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E5=8F=B0=E5=BC=BA=E5=88=B6=E8=B7=B3=E8=BF=87renderHom?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - skip条件从state.active判断改为仅判断state.tenant!==总览 - 修复state.active默认为home导致renderHome仍被调用 - 版本号 v1.2.0.3 --- static/modules/utils.js | 4 ++-- templates/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/modules/utils.js b/static/modules/utils.js index b49ab74..8980c1b 100644 --- a/static/modules/utils.js +++ b/static/modules/utils.js @@ -116,7 +116,7 @@ function renderTable(headers, rows, rowClicks) { } var _loadingSteps = [ - { fn: 'renderHome', label: '正在加载首页仪表盘(指标卡片+图表)', skip: function() { return state.tenant !== '总览' && state.active !== 'home'; } }, + { fn: 'renderHome', label: '正在加载首页仪表盘(指标卡片+图表)', skip: function() { return state.tenant !== '总览'; } }, { fn: 'renderProjects', label: '正在加载业务机会列表' }, { fn: 'renderProposals', label: '正在加载业务方案列表' }, { fn: 'renderProducts', label: '正在加载产品迭代列表' }, @@ -224,7 +224,7 @@ function updateSidebarTabs() { function render() { if (!state.data) return; - if (state.tenant === '总览' || state.active === 'home') renderHome(); + if (state.tenant === '总览') renderHome(); renderProjects(); renderProposals(); renderProducts(); diff --git a/templates/index.html b/templates/index.html index 3340289..9b24a8e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -76,7 +76,7 @@
-

OPC Manager v1.2.0.2

+

OPC Manager v1.2.0.3

科普 OPC 工作台