|
|
@@ -219,7 +219,7 @@ export default defineComponent({
|
|
|
lastIndex = source.length - 1, // 历史行情最后索引位置
|
|
|
lastTime = moment(source[lastIndex].date), // 历史行情最后时间
|
|
|
newTime = moment(props.quoteData.lasttime), // 实时行情最新时间
|
|
|
- { last, opened, highest, lowest } = props.quoteData; // 实时行情
|
|
|
+ last = props.quoteData.last; // 实时行情最新价
|
|
|
|
|
|
let cycleMilliseconds = 60 * 1000; // 周期毫秒数
|
|
|
|
|
|
@@ -255,10 +255,10 @@ export default defineComponent({
|
|
|
// 添加历史行情
|
|
|
source.push({
|
|
|
date: lastTime.format('YYYY-MM-DD HH:mm:ss'),
|
|
|
- open: opened,
|
|
|
+ open: last,
|
|
|
close: last,
|
|
|
- lowest: lowest,
|
|
|
- highest: highest,
|
|
|
+ lowest: last,
|
|
|
+ highest: last,
|
|
|
ma5: '-',
|
|
|
ma10: '-',
|
|
|
ma15: '-',
|