You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by qi...@apache.org on 2021/04/21 12:42:38 UTC

[skywalking-rocketbot-ui] branch master updated: fix: Solve the problem that traceId stored in localstorage cannot be deleted (#475)

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

qiuxiafan 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 8526536  fix: Solve the problem that traceId stored in localstorage cannot be deleted (#475)
8526536 is described below

commit 8526536a4b5b0bd59badedfca94bf30642e9c6f6
Author: horber <sh...@gmail.com>
AuthorDate: Wed Apr 21 20:42:05 2021 +0800

    fix: Solve the problem that traceId stored in localstorage cannot be deleted (#475)
    
    Co-authored-by: Qiuxia Fan <fi...@outlook.com>
---
 src/views/components/trace/trace-search.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/views/components/trace/trace-search.vue b/src/views/components/trace/trace-search.vue
index d87ad7c..9b3dde7 100644
--- a/src/views/components/trace/trace-search.vue
+++ b/src/views/components/trace/trace-search.vue
@@ -233,8 +233,9 @@ limitations under the License. -->
       }
       if (this.traceId) {
         temp.traceId = this.traceId;
-        localStorage.setItem('traceId', this.traceId);
       }
+      localStorage.setItem('traceId', this.traceId);
+      
       if (this.tagsList.length) {
         const tagsMap = this.tagsList.map((item: string) => {
           const key = item.substring(0, item.indexOf('='));