web/seller/src/api/common.js

12 lines
339 B
JavaScript
Raw Normal View History

2021-05-13 10:56:04 +08:00
import {commonUrl, getRequest} from '@/libs/axios';
// 通过id获取子地区
export const getChildRegion = (id) => {
2022-02-12 15:20:36 +08:00
return getRequest(`${commonUrl}/common/common/region/item/${id}`);
2021-05-13 10:56:04 +08:00
};
// 点地图获取地址信息
export const getRegion = (params) => {
2022-02-12 15:20:36 +08:00
return getRequest(`${commonUrl}/common/common/region/region`, params);
2021-05-13 10:56:04 +08:00
};