fix : 修复首页tag报错

This commit is contained in:
2024-05-14 00:09:36 +08:00
parent cd91dd3cad
commit 3bc24219ed

View File

@@ -114,7 +114,13 @@ const tableConfig = reactive({
label: '类型',
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => (<Tag dictType={'todo_type'} value={row.targetState}/>)
currentRender: ({row, index}) => {
if(row.targetState!==null){
return (<Tag dictType={'todo_type'} value={row.targetState}/>)
}else {
return '--'
}
}
},
{
prop: 'submitTime',