DESKTOP-SVI9JE1\muzen 1 سال پیش
والد
کامیت
c9c5b6f0b2
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/mixin/index.js

+ 2 - 2
src/mixin/index.js

@@ -641,8 +641,8 @@ const mapMixin = {
     
     areaFormatter(row) {
       if (this.mapOptions.length > 0) {
-        let province = this.mapOptions.find(i => i.id == row.province)
-        let provinceName = province.name
+        let province = row.province ? this.mapOptions.find(i => i.id == row.province) : ''
+        let provinceName = province ? province.name : ''
         let city = province.childList.length > 0 ? province.childList.find(i => i.id == row.city) : ''
         let cityName = city ? `-${city.name}` : ''
         let area = city && city.childList.length > 0 ? city.childList.find(i => i.id == row.area) : ''