findInTree(data = [], value, result = []) {
      if (data && value.length) {
        data.forEach(item => {
          if (item.id === value[0]) {
            result.push(item.name)
            value.shift()
          }
          if (item.sProvinceList && item.sProvinceList.length) {
            this.findInTree(item.sProvinceList, value, result)
          }
        })
      }
      data ? data.forEach(item => {
        item
      }) : []
    },
    getRegionContent(value) {
      const result = []
      this.findInTree(this.administrativeList, [...value], result)
      return result.join('/')
      
    },
最后修改:2022 年 03 月 18 日 02 : 20 PM
如果觉得我的文章对你有用,请随意赞赏