diff --git a/src/components/home/LineChart.vue b/src/components/home/LineChart.vue index b8aff26..74a679c 100644 --- a/src/components/home/LineChart.vue +++ b/src/components/home/LineChart.vue @@ -75,7 +75,7 @@ watch( xAxis: { type: 'category', boundaryGap: false, - data: newValue.data?.map(item => formatDateTime('HH:mm:ss', item.timestamp + 8 * 60 * 60 * 1000)), + data: newValue.data?.map(item => formatDateTime('HH:mm:ss', item.timestamp)), }, yAxis: { type: 'value', diff --git a/src/stores/systemStore.ts b/src/stores/systemStore.ts index 88115f3..61c9502 100644 --- a/src/stores/systemStore.ts +++ b/src/stores/systemStore.ts @@ -138,7 +138,7 @@ export const useSystemStore = defineStore( fnName: 'getTime', } const res = await sendCmd(timeParams) - systemTime.value = res.time + 8 * 60 * 60 * 1000 + systemTime.value = res.time } return { diff --git a/src/views/seal/index.vue b/src/views/seal/index.vue index b25fe8b..8de5ca3 100644 --- a/src/views/seal/index.vue +++ b/src/views/seal/index.vue @@ -138,58 +138,48 @@ function handleConfirm(value: string) {
-
-
- 仪表盘 -
- 气压差值 -
-
- {{ roundNumber(diffPressure, 2) }} - Kpa -
+
+ 仪表盘 +
+ 气压差值
-
-
-
-
- - - -
-
- - - -
+
+ {{ roundNumber(diffPressure, 2) }} + Kpa
+ + + + + +