udesk 技术储备

master
lemon橪 2021-12-20 17:34:45 +08:00
parent dfd3885486
commit c1d4d39265
1 changed files with 32 additions and 26 deletions

View File

@ -1,10 +1,8 @@
/** /**
* 公共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";
/** /**
* 获取地区数据 * 获取地区数据
@ -18,9 +16,17 @@ export function getRegionsById(id = 0) {
}); });
} }
// 获取IM接口前缀
export function getIMDetail() {
return http.request({
url: `${api.common}/IM`,
method: Method.GET,
message: false,
});
}
/** /**
* 文件上传地址 * 文件上传地址
* @type {string} * @type {string}
*/ */
export const upload =api.common+'/upload/file'; export const upload = api.common + "/upload/file";