fix: 修复搜索结果显示即将到期

This commit is contained in:
kuaifan 2025-03-20 14:51:13 +08:00
parent 0535b56766
commit 919289c5ca

View File

@ -351,7 +351,7 @@ export default {
name: this.$L('超期'),
style: 'background-color:#f00',
})
} else if ($A.dayjs(item.end_at).unix() - nowTime < 86400) {
} else if (item.end_at && $A.dayjs(item.end_at).unix() - nowTime < 86400) {
tags.push({
name: this.$L('即将到期'),
style: 'background-color:#f80',