flat: 合并, 报错修复

This commit is contained in:
Apcallover
2024-04-21 16:38:25 +08:00
parent 1d0ef39fff
commit 3cb42d7be1
4 changed files with 219 additions and 238 deletions

View File

@@ -414,8 +414,7 @@
}
},
cityNamed() {
console.log('val', this.info, this.area.dic)
if (this.info && this.info.cityId !== -1 && this.area.dic) {
if (this.info && typeof this.info.cityId !== 'undefined' && this.info.cityId !== -1 && this.area.dic) {
return this.area.dic[this.info.cityId].label
} else {
return '无'