This commit is contained in:
gtz
2023-07-26 09:54:50 +08:00
commit 0fca3e1ec4
677 changed files with 80083 additions and 0 deletions

17
src/api/system/area.js Normal file
View File

@@ -0,0 +1,17 @@
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'
})
}