yudao-dev/src/api/system/area.js

18 lines
319 B
JavaScript
Raw Normal View History

2023-07-26 09:54:50 +08:00
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'
})
}