udesk 技术储备
parent
dfd3885486
commit
c1d4d39265
|
@ -1,26 +1,32 @@
|
||||||
/**
|
/**
|
||||||
* 公共API
|
* 公共API
|
||||||
*/
|
*/
|
||||||
import {http, Method} from '@/utils/request.js';
|
import { http, Method } from "@/utils/request.js";
|
||||||
import api from '@/config/api.js';
|
import api from "@/config/api.js";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取地区数据
|
||||||
/**
|
* @param id
|
||||||
* 获取地区数据
|
*/
|
||||||
* @param id
|
export function getRegionsById(id = 0) {
|
||||||
*/
|
return http.request({
|
||||||
export function getRegionsById(id = 0) {
|
url: `${api.common}/region/item/${id}`,
|
||||||
return http.request({
|
method: Method.GET,
|
||||||
url: `${api.common}/region/item/${id}`,
|
message: false,
|
||||||
method: Method.GET,
|
});
|
||||||
message: false,
|
}
|
||||||
});
|
|
||||||
}
|
// 获取IM接口前缀
|
||||||
|
export function getIMDetail() {
|
||||||
/**
|
return http.request({
|
||||||
* 文件上传地址
|
url: `${api.common}/IM`,
|
||||||
* @type {string}
|
method: Method.GET,
|
||||||
*/
|
message: false,
|
||||||
export const upload =api.common+'/upload/file';
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件上传地址
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
export const upload = api.common + "/upload/file";
|
||||||
|
|
Loading…
Reference in New Issue