|
@@ -31,7 +31,7 @@ onMounted(() => {
|
|
|
const step = 1 // 每秒一个点
|
|
|
const maxPoints = totalSeconds / step + 1
|
|
|
const xAxisData = Array.from({ length: maxPoints }, (_, i) => i * step)
|
|
|
- const lineData: number[] = Array(maxPoints).fill(20) // 初始基准值为20
|
|
|
+ const lineData: number[] = [] // 初始基准数据
|
|
|
|
|
|
// 初始化图表配置
|
|
|
option.value = {
|