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/12/21 06:26:21 UTC

[incubator-dubbo-ops] branch metadata updated: fix jshint error

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

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


The following commit(s) were added to refs/heads/metadata by this push:
     new 5c51b81  fix jshint error
5c51b81 is described below

commit 5c51b81712ff5de67344972e6b6a3bf00ee085b2
Author: nzomkxia <z8...@gmail.com>
AuthorDate: Fri Dec 21 14:26:08 2018 +0800

    fix jshint error
---
 .../src/components/ServiceSearch.vue                 | 20 ++++++++++----------
 .../src/components/governance/Overrides.vue          |  2 +-
 .../src/components/governance/WeightAdjust.vue       |  2 +-
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/dubbo-admin-frontend/src/components/ServiceSearch.vue b/dubbo-admin-frontend/src/components/ServiceSearch.vue
index 12e2350..5003a78 100644
--- a/dubbo-admin-frontend/src/components/ServiceSearch.vue
+++ b/dubbo-admin-frontend/src/components/ServiceSearch.vue
@@ -128,22 +128,22 @@
       ],
       options: [
         { title: 'Routing Rule',
-          value: "routingRule"
+          value: 'routingRule'
         },
         { title: 'Tag Rule',
-          value: "tagRule"
+          value: 'tagRule'
         },
         { title: 'Dynamic Config',
-          value: "config"
+          value: 'config'
         },
         { title: 'Access Control',
-          value: "access"
+          value: 'access'
         },
         { title: 'Weight Adjust',
-          value: "weight"
+          value: 'weight'
         },
         { title: 'Load Balance',
-          value: "loadbalance"
+          value: 'loadbalance'
         }
       ],
       timerID: null,
@@ -240,7 +240,7 @@
       },
       governanceHref: function (type, service, group, version) {
         let base = '/#/governance/' + type
-        let query = service;
+        let query = service
         if (group !== null) {
           query = group + '/' + query
         }
@@ -248,9 +248,9 @@
           query = query + ':' + version
         }
         if (type === 'tagRule') {
-          return base + '?application=' + query;
+          return base + '?application=' + query
         }
-        return base + '?service=' + query;
+        return base + '?service=' + query
       },
       submit () {
         this.filter = document.querySelector('#serviceSearch').value.trim()
@@ -299,7 +299,7 @@
         }
         this.search(filter, pattern, false)
       } else {
-        //display all existing services by default
+        // display all existing services by default
         this.filter = '*'
         this.selected = 0
         pattern = 'service'
diff --git a/dubbo-admin-frontend/src/components/governance/Overrides.vue b/dubbo-admin-frontend/src/components/governance/Overrides.vue
index 347031b..9da0b7f 100644
--- a/dubbo-admin-frontend/src/components/governance/Overrides.vue
+++ b/dubbo-admin-frontend/src/components/governance/Overrides.vue
@@ -268,7 +268,7 @@
       },
       saveItem: function () {
         let override = yaml.safeLoad(this.ruleText)
-        if (!this.service  && !this.application) {
+        if (!this.service && !this.application) {
           this.$notify.error('Either service or application is needed')
           return
         }
diff --git a/dubbo-admin-frontend/src/components/governance/WeightAdjust.vue b/dubbo-admin-frontend/src/components/governance/WeightAdjust.vue
index d03bbb5..7cd057b 100644
--- a/dubbo-admin-frontend/src/components/governance/WeightAdjust.vue
+++ b/dubbo-admin-frontend/src/components/governance/WeightAdjust.vue
@@ -290,7 +290,7 @@
                 if (response.status === 200) {
                   if (vm.service) {
                     vm.selected = 0
-                    vm.search(his.service, true)
+                    vm.search(vm.service, true)
                     vm.filter = vm.service
                   } else {
                     vm.selected = 1