How to change the corresponding text according to the id of provinces, cities and regions

how to change the corresponding text

according to the id of provinces, cities and regions.
May.05,2022
There is no
let obj = {'430100':'','430101':''};
obj['430100'] // ''

code. Sorry, I can't guess


  /**
   * ID
   * @param {Object} obj
   *  @param obj.dataList 
   *  @param obj.value        'value'
   *  @param obj.label      'label'
   *  @param obj.data     
   * @return name        
   */
  getDataName: (obj) => {
    let name = obj.data
    if (Array.isArray(obj.dataList) && obj.dataList.length > 0) {
      for (let i = 0; i < obj.dataList.length; iPP) {
        if (obj.dataList[i][obj.value] === obj.data) {
          name = obj.dataList[i][obj.label]
        }
      }
    }
    return name
  }

option has no corresponding id?

Menu