You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
know_sub_web/src/api/utils.ts

33 lines
646 B
TypeScript

import { http } from "@/utils/http";
/** 查询字典树 */
export const queryCommonDictTree = (data?: object) => {
return http.request(
"get",
"/virtual-patient-manage/commonDic/queryCommonDictTree",
{
params: data
}
);
};
/** 上传文件*/
export const uploadFile = (data?: object) => {
return http.request(
"post",
"/know-sub/file/uploade",
{ data },
{ headers: { "Content-Type": "multipart/form-data" } }
);
};
export const loadFileBase64 = (data?: object) => {
return http.request(
"get",
"/virtual-patient-manage/fileManage/loadFileBase64",
{
params: data
}
);
};