e64b5906da
根因(浏览器实证): onSubmit 异步轮询 done 后 result/equityCurve 同帧赋值, v-if result 块(含 chart-box div)此帧才挂载, watch(equityCurve, flush:post) 在该时序下漏触发 renderEquity → echarts 从未 init(chart-box 无 _echarts_instance_)。 手动 echarts.init+setOption 实证容器/echarts/数据全正常(37点),纯 watch 触发遗漏。 修复: equityCurve 赋值后 await nextTick()(等 chart-box 挂载)+ 手动 renderEquity()兜底。 watch 保留(双保险, ensureChart 幂等)。
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.