fix: 修复 type 是字符串引起的显示错误

This commit is contained in:
huangze
2025-07-04 18:05:52 +08:00
parent 52c1658f72
commit 3378a621b2

View File

@@ -34,7 +34,7 @@ export default {
},
computed: {
title() {
if (!this.type) return "欢迎使用幸福人寿生态系统!"
if (!Number(this.type)) return "欢迎使用幸福人寿生态系统!"
return `亲爱的${this.name}${this.sex == 1 ? '女士' : '先生'}`
}
},