You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by mi...@apache.org on 2018/10/18 03:10:06 UTC

[incubator-dubbo-ops] branch develop updated: use item id

This is an automated email from the ASF dual-hosted git repository.

min pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git


The following commit(s) were added to refs/heads/develop by this push:
     new 6c85fb0  use item id
6c85fb0 is described below

commit 6c85fb0e4e4e4ccd225d990505d16740542adc14
Author: nzomkxia <z8...@gmail.com>
AuthorDate: Thu Oct 18 11:09:35 2018 +0800

    use item id
---
 dubbo-admin-frontend/src/components/governance/LoadBalance.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dubbo-admin-frontend/src/components/governance/LoadBalance.vue b/dubbo-admin-frontend/src/components/governance/LoadBalance.vue
index 9f2d184..0f90d30 100644
--- a/dubbo-admin-frontend/src/components/governance/LoadBalance.vue
+++ b/dubbo-admin-frontend/src/components/governance/LoadBalance.vue
@@ -92,7 +92,7 @@
         <v-card-actions>
           <v-spacer></v-spacer>
           <v-btn color="green darken-1" flat @click.native="closeWarn">CANCLE</v-btn>
-          <v-btn color="green darken-1" flat @click.native="deleteItem(warnStatus)">CONFIRM</v-btn>
+          <v-btn color="green darken-1" flat @click.native="deleteItem(warnStatus.id)">CONFIRM</v-btn>
         </v-card-actions>
       </v-card>
     </v-dialog>
@@ -252,8 +252,8 @@
       setHeight: function () {
         this.height = window.innerHeight * 0.5
       },
-      deleteItem: function (warnStatus) {
-        AXIOS.delete('/rules/balancing/' + warnStatus.id)
+      deleteItem: function (id) {
+        AXIOS.delete('/rules/balancing/' + id)
           .then(response => {
             this.warn = false
             this.search(this.filter, false)