From 4c5270cf7ae35905480db6143d27864496bc52f0 Mon Sep 17 00:00:00 2001 From: claude_dev Date: Sun, 2 Aug 2026 20:01:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20EquityCurve=20=E5=8E=BB=20v-if?= =?UTF-8?q?=20+=20watch=20flush:post(=E6=B2=BB=E5=87=80=E5=80=BC=E5=9B=BE?= =?UTF-8?q?=E6=B0=B8=E4=B8=8Dinit)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EquityCurve 用 v-if/v-else(空数据占位/否则chart-box),但数据异步到达时 v-else 切换 + watch 默认 pre flush → el.value 尚未绑定 → echarts.init 跳过 → 净值图 hasEchartsInstance=false 永不画。改为总渲染 chart-box(同 BenchmarkCurve 模式) + watch flush:post 保证 DOM patch 后 render。vue-tsc RC=0。 --- .../src/components/backtest/EquityCurve.vue | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/backtest/EquityCurve.vue b/frontend/src/components/backtest/EquityCurve.vue index d34afa3..93acd08 100644 --- a/frontend/src/components/backtest/EquityCurve.vue +++ b/frontend/src/components/backtest/EquityCurve.vue @@ -1,5 +1,5 @@