diff --git a/src/components/charts/LineChart.vue b/src/components/charts/LineChart.vue index 72c10b6..55cf41e 100644 --- a/src/components/charts/LineChart.vue +++ b/src/components/charts/LineChart.vue @@ -71,7 +71,7 @@ export default { }), }, unit: { - type: "String", + type: String, default: "单位/m³", }, legend: { diff --git a/src/components/isolate-area-1/Area.vue b/src/components/isolate-area-1/Area.vue index fef2828..75e415e 100644 --- a/src/components/isolate-area-1/Area.vue +++ b/src/components/isolate-area-1/Area.vue @@ -31,7 +31,7 @@ export default { computed: { ...mapState(["fireDirection", "lastFireChangeTime", "fireChangeTime"]), rdata() { - let [_, min, sec] = /(\d+)分(\d+)秒/.exec(this.lastFireChangeTime) + let [_, min, sec] = /(\d+)分(\d+)秒/.exec(this.lastFireChangeTime || '0分0秒') min = +min sec = +sec let timer = setInterval(() => { diff --git a/src/store/index.js b/src/store/index.js index 4f8dbe4..c7c79d7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -22,7 +22,7 @@ export default new Vuex.Store({ fireDirection: "南火", kilnPressure: '00', fireChangeTime: '00:00:00', - lastFireChangeTime: '/', + lastFireChangeTime: '0分0秒', waterInTemp: '000', waterOutTemp: '000' },