fix the tag tips (#75)

This commit is contained in:
Fine0830 2022-04-29 15:26:58 +08:00 committed by GitHub
parent f40e9633df
commit 4c1884d552
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions

View File

@ -242,6 +242,10 @@ const msg = {
defaultDepth: "Default Depth",
traceTagsTip: `Only tags defined in the core/default/searchableTracesTags are searchable.
Check more details on the Configuration Vocabulary page`,
logTagsTip: `Only tags defined in the core/default/searchableLogsTags are searchable.
Check more details on the Configuration Vocabulary page`,
alarmTagsTip: `Only tags defined in the core/default/searchableAlarmTags are searchable.
Check more details on the Configuration Vocabulary page`,
tagsLink: "Configuration Vocabulary page",
addTag: "Please input a tag",
log: "Log",

View File

@ -243,6 +243,10 @@ const msg = {
defaultDepth: "默认深度",
traceTagsTip:
"只有core/default/searchableTracesTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。",
logTagsTip:
"只有core/default/searchableTracesTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。",
alarmTagsTip:
"只有core/default/searchableTracesTags中定义的标记才可搜索。查看配置词汇表页面上的更多详细信息。",
tagsLink: "配置词汇页",
addTag: "请添加标签",
logCategory: "日志类别",

View File

@ -39,7 +39,17 @@ limitations under the License. -->
>
{{ t("tagsLink") }}
</a>
<el-tooltip :content="t('traceTagsTip')">
<el-tooltip
:content="
t(
type === 'LOG'
? 'logTagsTip'
: type === 'TRACE'
? 'traceTagsTip'
: 'alarmTagsTip'
)
"
>
<span>
<Icon class="icon-help mr-5" iconName="help" size="middle" />
</span>