From 12fe256c71176916669d0d2b7411512eeb2a3bdc Mon Sep 17 00:00:00 2001 From: utchoang Date: Wed, 3 Aug 2022 14:48:16 +0700 Subject: [PATCH 1/2] fixed an error that generated incorrect messages when accessing the config limit tab --- ui/src/components/view/ResourceLimitTab.vue | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ui/src/components/view/ResourceLimitTab.vue b/ui/src/components/view/ResourceLimitTab.vue index b20f00e39a85..adf781ab0fd6 100644 --- a/ui/src/components/view/ResourceLimitTab.vue +++ b/ui/src/components/view/ResourceLimitTab.vue @@ -82,17 +82,6 @@ export default { this.dataResource = this.resource this.fetchData() }, - watch: { - resource: { - deep: true, - handler (newData) { - if (!newData || !newData.id) { - return - } - this.fetchData() - } - } - }, methods: { getParams () { const params = {} From 3be308c625ca762f6b778d65b547261609d1dce0 Mon Sep 17 00:00:00 2001 From: utchoang Date: Wed, 3 Aug 2022 16:10:36 +0700 Subject: [PATCH 2/2] removed deep:true --- ui/src/components/view/ResourceLimitTab.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ui/src/components/view/ResourceLimitTab.vue b/ui/src/components/view/ResourceLimitTab.vue index adf781ab0fd6..0c09a14fcd5c 100644 --- a/ui/src/components/view/ResourceLimitTab.vue +++ b/ui/src/components/view/ResourceLimitTab.vue @@ -82,6 +82,16 @@ export default { this.dataResource = this.resource this.fetchData() }, + watch: { + resource: { + handler (newData) { + if (!newData || !newData.id) { + return + } + this.fetchData() + } + } + }, methods: { getParams () { const params = {}