潘志宝
2025-02-05 3e5f6c444a32a66a6111aacd3a4c5212c32bdf9e
1
2
3
4
5
6
7
8
9
10
11
import request from '@/config/axios'
 
// 获得地区树
export const getAreaTree = async () => {
  return await request.get({ url: '/system/area/tree' })
}
 
// 获得 IP 对应的地区名
export const getAreaByIp = async (ip: string) => {
  return await request.get({ url: '/system/area/get-by-ip?ip=' + ip })
}