提交 f3ea15ce 编写于 作者: F fengxuefeng

fix The timer refresh edit box cannot clear 0

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