mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 10:32:25 +00:00
12 lines
292 B
TypeScript
12 lines
292 B
TypeScript
import { defHttp } from '@/utils/http/axios'
|
|
|
|
// 获得地区树
|
|
export function getAreaTree() {
|
|
return defHttp.get({ url: '/system/area/tree' })
|
|
}
|
|
|
|
// 获得 IP 对应的地区名
|
|
export function getAreaByIp(ip: string) {
|
|
return defHttp.get({ url: `/system/area/get-by-ip?ip=${ip}` })
|
|
}
|