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

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ddfb9f  Fix: Topology bug (#292)
5ddfb9f is described below

commit 5ddfb9f689005e2e23e098cf49cad3aca15ce55e
Author: Allen Wang <[email protected]>
AuthorDate: Thu May 7 14:59:03 2020 +0800

    Fix: Topology bug (#292)
    
    Co-authored-by: 吴晟 Wu Sheng <[email protected]>
---
 src/views/components/topology/topo-services.vue | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/views/components/topology/topo-services.vue 
b/src/views/components/topology/topo-services.vue
index f51274c..db4aa75 100644
--- a/src/views/components/topology/topo-services.vue
+++ b/src/views/components/topology/topo-services.vue
@@ -71,6 +71,16 @@ limitations under the License. -->
 
     private created() {
       this.fetchData();
+      const groups = localStorage.getItem('topology-groups');
+      if (groups) {
+        const jsonGroup = JSON.parse(groups);
+        if (!jsonGroup.length) {
+          this.GET_TOPO({
+            serviceId: 0,
+            duration: this.durationTime,
+          });
+        }
+      }
     }
   }
 </script>

Reply via email to