This commit is contained in:
张恪铭 2023-05-14 16:31:44 +08:00
commit 3a1f2f5cf6
3 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ export default {
}), }),
}, },
unit: { unit: {
type: "String", type: String,
default: "单位/m³", default: "单位/m³",
}, },
legend: { legend: {

View File

@ -31,7 +31,7 @@ export default {
computed: { computed: {
...mapState(["fireDirection", "lastFireChangeTime", "fireChangeTime"]), ...mapState(["fireDirection", "lastFireChangeTime", "fireChangeTime"]),
rdata() { rdata() {
let [_, min, sec] = /(\d+)分(\d+)秒/.exec(this.lastFireChangeTime) let [_, min, sec] = /(\d+)分(\d+)秒/.exec(this.lastFireChangeTime || '0分0秒')
min = +min min = +min
sec = +sec sec = +sec
let timer = setInterval(() => { let timer = setInterval(() => {

View File

@ -22,7 +22,7 @@ export default new Vuex.Store({
fireDirection: "南火", fireDirection: "南火",
kilnPressure: '00', kilnPressure: '00',
fireChangeTime: '00:00:00', fireChangeTime: '00:00:00',
lastFireChangeTime: '/', lastFireChangeTime: '0分0秒',
waterInTemp: '000', waterInTemp: '000',
waterOutTemp: '000' waterOutTemp: '000'
}, },