提交 f3ea15ce 编写于 作者: F fengxuefeng

fix The timer refresh edit box cannot clear 0

上级 46099e82
...@@ -194,6 +194,9 @@ export default { ...@@ -194,6 +194,9 @@ export default {
this.newReloadValue = this.timeReloadValue; this.newReloadValue = this.timeReloadValue;
}, },
timeValueChange() { timeValueChange() {
if (this.newReloadValue === '') {
return;
}
this.newReloadValue = this.newReloadValue this.newReloadValue = this.newReloadValue
.toString() .toString()
.replace(/[^\.\d]/g, '') .replace(/[^\.\d]/g, '')
...@@ -229,9 +232,12 @@ export default { ...@@ -229,9 +232,12 @@ export default {
}, },
cancelHardwareTimeValue() { cancelHardwareTimeValue() {
this.isShowHardwareInp = false; this.isShowHardwareInp = false;
this.newHardwareReloadValue = this.timeReloadValue; this.newHardwareReloadValue = this.hardwareTimeReloadValue;
}, },
hardwareTimeValueChange() { hardwareTimeValueChange() {
if (this.newHardwareReloadValue === '') {
return;
}
this.newHardwareReloadValue = this.newHardwareReloadValue this.newHardwareReloadValue = this.newHardwareReloadValue
.toString() .toString()
.replace(/[^\.\d]/g, '') .replace(/[^\.\d]/g, '')
......
...@@ -35,7 +35,7 @@ export default new Vuex.Store({ ...@@ -35,7 +35,7 @@ export default new Vuex.Store({
// hardware reload time // hardware reload time
hardwareTimeReloadValue: localStorage.hardwareTimeReloadValue hardwareTimeReloadValue: localStorage.hardwareTimeReloadValue
? localStorage.hardwareTimeReloadValue ? localStorage.hardwareTimeReloadValue
: 3, : 5,
// multiSelevtGroup component count // multiSelevtGroup component count
multiSelectedGroupCount: 0, multiSelectedGroupCount: 0,
tableId: 0, tableId: 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册