import http from '../utils/http/index.js' let areaCache = null // 获取省市区 export function getArea(data = {}) { return new Promise((resolve, reject) => { if (areaCache) { resolve(areaCache) } else { http.get({ url: '/yyt-uec/get/regions', data }).then((res) => { if (res) { areaCache = res resolve(res) } else { resolve(null) } }) } }) }