You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
309 B
18 lines
309 B
5 months ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// api地址
|
||
|
const api = {
|
||
|
all: 'region/all',
|
||
|
tree: 'region/tree'
|
||
|
}
|
||
|
|
||
|
// 获取所有地区
|
||
|
export const all = (param) => {
|
||
|
return request.get(api.all, param)
|
||
|
}
|
||
|
|
||
|
// 获取所有地区(树状)
|
||
|
export const tree = (param) => {
|
||
|
return request.get(api.tree, param)
|
||
|
}
|