|
|
@ -2758,8 +2758,9 @@ async function renderChartsSequentially(clonedData, stockIndex = 0) { |
|
|
|
|
|
|
|
if (typeof config.ref[config.method] === "function") { |
|
|
|
try { |
|
|
|
// 等待DOM元素完全渲染 |
|
|
|
await new Promise((resolve) => setTimeout(resolve, 100)); |
|
|
|
// 增加延迟时间,特别是对于第2个及后续股票 |
|
|
|
const delay = stockIndex === 0 ? 100 : 300 + (stockIndex * 100); |
|
|
|
await new Promise((resolve) => setTimeout(resolve, delay)); |
|
|
|
|
|
|
|
config.ref[config.method](...config.params); |
|
|
|
console.log(`第${stockIndex}个股票的${config.name}图表渲染成功`); |
|
|
|