lanan-system-vue/src/api/system/area.js

18 lines
319 B
JavaScript
Raw Normal View History

2024-07-30 15:07:56 +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'
})
}