fix: 修复model列表页 type 数据为空时报错

This commit is contained in:
@changcode
2022-03-15 18:43:22 +08:00
parent 3d81733d7a
commit e0b4224068
2 changed files with 7 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
{{scope.row.brand.name}}
</template>
<template v-else-if="item.prop === 'type'">
{{scope.row.type.name}}
{{scope.row.type ? scope.row.type.name : '-'}}
</template>
<span v-else-if="item.prop === 'createTime'">{{utcTimeToTimezoneStr(scope.row[item.prop])}}</span>
<template v-else-if="item.prop === 'assetNum'">