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 cb73a48 Fix log pages tags column not updated (#443) cb73a48 is described below commit cb73a48aaafc01aa3bac830cc1a60e25f69ccc43 Author: hailin0 <hail...@yeah.net> AuthorDate: Wed Mar 10 14:47:45 2021 +0800 Fix log pages tags column not updated (#443) Co-authored-by: 吴晟 Wu Sheng <wu.sh...@foxmail.com> --- src/views/components/log/log-table/log-service-item.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/components/log/log-table/log-service-item.vue b/src/views/components/log/log-table/log-service-item.vue index f041394..06a75da 100644 --- a/src/views/components/log/log-table/log-service-item.vue +++ b/src/views/components/log/log-table/log-service-item.vue @@ -41,12 +41,11 @@ limitations under the License. --> @Prop() private data: any; @Prop() private noLink!: any; private columns = ServiceLogConstants; - private tags: string = ''; - private created() { + private get tags() { if (!this.data.tags) { - return; + return ''; } - this.tags = String(this.data.tags.map((d: any) => `${d.key}=${d.value}`)); + return String(this.data.tags.map((d: any) => `${d.key}=${d.value}`)); } private showSelectSpan() { this.$eventBus.$emit('HANDLE-SELECT-LOG', this.data);