Skip to content

Commit a8645b6

Browse files
committed
fix: update tool type display logic in ToolResourceIndex.vue for improved clarity
--bug=1059949 --user=刘瑞斌 【资源管理】工具列表,内置工具的类型显示错误 https://www.tapd.cn/62980211/s/1748031
1 parent d635cc2 commit a8645b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/system-resource-management/ToolResourceIndex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
<el-table-column prop="tool_type" :label="$t('views.system.resource_management.type')">
7474
<template #default="scope">
75-
{{ $t(ToolType[scope.row.tool_type as keyof typeof ToolType]) }}
75+
{{ $t(ToolType[scope.row.template_id ? 'INTERNAL' : 'CUSTOM' as keyof typeof ToolType]) }}
7676
</template>
7777
</el-table-column>
7878
<el-table-column :label="$t('common.status.label')" width="120">

0 commit comments

Comments
 (0)