This commit is contained in:
六如
2024-12-01 13:10:32 +08:00
parent 09330a7431
commit c0cfdbafd9
22 changed files with 1584 additions and 513 deletions

View File

@@ -216,3 +216,13 @@ class PureHttp {
}
export const http = new PureHttp();
/**
* 文件必须放在public下面
* @param path 相对于public文件夹路径如文件在public/static/sign.mdstatic/sign.md
*/
export function getFile(path) {
return Axios.get(path, {
responseType: "text"
});
}