提交 | 用户 | 时间 | ||
314507 | 1 | import request from '@/config/axios' |
H | 2 | |
3 | // 获得地区树 | |
4 | export const getAreaTree = async () => { | |
5 | return await request.get({ url: '/system/area/tree' }) | |
6 | } | |
7 | ||
8 | // 获得 IP 对应的地区名 | |
9 | export const getAreaByIp = async (ip: string) => { | |
10 | return await request.get({ url: '/system/area/get-by-ip?ip=' + ip }) | |
11 | } |