The file /home/project/src/routes/stock.$code.tsx has been updated. Made 1 replacement.
Here's the result of running `cat -n` on a snippet of the edited file:
550→
成交额 |
551→
552→
553→
554→ {(() => {
555→ // 根据选择的天数截取最近N个交易日的数据并倒序(最新日期在前)
556→ const displayData = chartData.slice(-dailyTableDays).reverse();
557→
558→ return displayData.map((item, idx) => {
559→ // 计算涨幅:与后一天收盘价比较(因为已倒序,后一天是更早的日期)
560→ let changePercent = 0;
561→ if (idx < displayData.length - 1) {