fix(任务中心): 列表状态判空

This commit is contained in:
baiqi 2024-10-15 17:32:05 +08:00 committed by Craftsman
parent b5eb31f348
commit a9a4bb7203
2 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@
options: Object.keys(executeResultMap).map((key) => ({
label: t(executeResultMap[key].label),
value: key,
icon: executeResultMap[key].icon,
icon: executeResultMap[key]?.icon,
})),
filterSlotName: FilterSlotNameEnum.GLOBAL_TASK_CENTER_EXEC_RESULT,
},

View File

@ -1,7 +1,7 @@
<template>
<div class="flex items-center justify-start">
<MsIcon :type="getExecutionResult().icon" :class="`text-[${getExecutionResult()?.color}]`" size="14" />
<span class="ml-1">{{ t(getExecutionResult().label) }}</span>
<MsIcon :type="getExecutionResult()?.icon" :class="`text-[${getExecutionResult()?.color}]`" size="14" />
<span class="ml-1">{{ t(getExecutionResult()?.label) }}</span>
<!-- <a-tooltip v-if="props.scriptIdentifier" :content="getMsg()">
<MsTag
class="ml-2"