Blame view

yudao-ui-admin/src/api/system/area.js 319 Bytes
7a4a6a30   YunaiV   product:优化管理后台相关的接口
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  import request from '@/utils/request'
  
  // 获得地区树
  export function getAreaTree() {
    return request({
      url: '/system/area/tree',
      method: 'get'
    })
  }
  
  // 获得 IP 对应的地区名
  export function getAreaByIp(ip) {
    return request({
      url: '/system/area/get-by-ip?ip=' + ip,
      method: 'get'
    })
  }