Browse Source

fix The timer refresh edit box cannot clear 0

tags/0.7.0-beta
fengxuefeng 5 years ago
parent
commit
a83dd16840
2 changed files with 8 additions and 2 deletions
  1. +7
    -1
      mindinsight/ui/src/components/header.vue
  2. +1
    -1
      mindinsight/ui/src/store.js

+ 7
- 1
mindinsight/ui/src/components/header.vue View File

@@ -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 {
}, },
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, '')


+ 1
- 1
mindinsight/ui/src/store.js View File

@@ -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,


Loading…
Cancel
Save