mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-06-20 07:11:59 +08:00
12 lines
333 B
TypeScript
12 lines
333 B
TypeScript
import request from '@/config/axios'
|
|
|
|
// 获得地区树
|
|
export const getAreaTree = async (id: number) => {
|
|
return await request.get({ url: '/system/area/tree?id=' + id })
|
|
}
|
|
|
|
// 获得 IP 对应的地区名
|
|
export const getAreaByIp = async (ip: string) => {
|
|
return await request.get({ url: '/system/area/get-by-ip?ip=' + ip })
|
|
}
|