mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
5.0
This commit is contained in:
@@ -216,3 +216,13 @@ class PureHttp {
|
||||
}
|
||||
|
||||
export const http = new PureHttp();
|
||||
|
||||
/**
|
||||
* 文件必须放在public下面
|
||||
* @param path 相对于public文件夹路径,如文件在public/static/sign.md,填:static/sign.md
|
||||
*/
|
||||
export function getFile(path) {
|
||||
return Axios.get(path, {
|
||||
responseType: "text"
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user