feat: add queries for alarm tags (#417)

This commit is contained in:
Fine0830
2024-09-29 15:15:35 +08:00
committed by GitHub
parent a5b0acda06
commit d65c18bd38
7 changed files with 56 additions and 17 deletions

View File

@@ -50,7 +50,7 @@ limitations under the License. -->
return [];
}
return props.currentLog.tags.map((d: { key: string; value: string }) => {
return `${d.key} = ${d.value}`;
return `${d.key}=${d.value}`;
});
});

View File

@@ -110,7 +110,7 @@ limitations under the License. -->
<div>
<span class="grey title">Tags:</span>
<div class="mb-5" v-for="(tag, index) in currentEvent.tags || []" :key="index" style="white-space: pre-wrap">
{{ tag.key + "=" + tag.value }};
{{ `${tag.key}=${tag.value}` }};
</div>
</div>
</div>