This commit is contained in:
Qiuxia Fan 2022-05-11 14:27:35 +08:00
parent 8685bdb5fb
commit 126e259a70
2 changed files with 6 additions and 12 deletions

View File

@ -49,17 +49,7 @@ limitations under the License. -->
>
{{ t("tagsLink") }}
</a>
<el-tooltip
:content="
t(
type === 'LOG'
? 'logTagsTip'
: type === 'TRACE'
? 'traceTagsTip'
: 'alarmTagsTip'
)
"
>
<el-tooltip :content="t(tipsMap[type])">
<span>
<Icon class="icon-help mr-5" iconName="help" size="middle" />
</span>
@ -88,6 +78,11 @@ const tags = ref<string>("");
const tagsList = ref<string[]>([]);
const tagKeys = ref<Option[]>([]);
const tagValues = ref<Option[]>([]);
const tipsMap = {
LOG: "logTagsTip",
TRACE: "traceTagsTip",
ALARM: "alarmTagsTip",
};
fetchTagKeys();
function removeTags(index: number) {

View File

@ -200,7 +200,6 @@ export default defineComponent({
dom.style.background = "rgba(0, 0, 0, 0.1)";
}
function selectSpan(event: any) {
console.log(event.composedPath());
const dom = event
.composedPath()
.find((d: any) => d.className.includes("trace-item"));