2021-05-13 11:03:32 +08:00
|
|
|
/**
|
|
|
|
* 公共API
|
|
|
|
*/
|
|
|
|
import {http, Method} from '@/utils/request.js';
|
|
|
|
import api from '@/config/api.js';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 获取地区数据
|
|
|
|
* @param id
|
|
|
|
*/
|
|
|
|
export function getRegionsById(id = 0) {
|
|
|
|
return http.request({
|
|
|
|
url: `${api.common}/region/item/${id}`,
|
|
|
|
method: Method.GET,
|
|
|
|
message: false,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2021-05-14 17:31:40 +08:00
|
|
|
* 文件上传地址
|
2021-05-13 11:03:32 +08:00
|
|
|
* @type {string}
|
|
|
|
*/
|
|
|
|
export const upload =api.common+'/upload/file';
|
|
|
|
|