From f3ea15ceedad1b30202a973d776cfbd787b38a67 Mon Sep 17 00:00:00 2001 From: fengxuefeng Date: Sat, 25 Jul 2020 17:43:01 +0800 Subject: [PATCH] fix The timer refresh edit box cannot clear 0 --- mindinsight/ui/src/components/header.vue | 8 +++++++- mindinsight/ui/src/store.js | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mindinsight/ui/src/components/header.vue b/mindinsight/ui/src/components/header.vue index 7e6c67f..1991f8f 100644 --- a/mindinsight/ui/src/components/header.vue +++ b/mindinsight/ui/src/components/header.vue @@ -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, '') diff --git a/mindinsight/ui/src/store.js b/mindinsight/ui/src/store.js index 340bd8c..f705335 100644 --- a/mindinsight/ui/src/store.js +++ b/mindinsight/ui/src/store.js @@ -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, -- GitLab