(relative_path,callback)
| 2 | import { UrlBase } from "./base"; |
| 3 | |
| 4 | export const GetFileList = (relative_path,callback) => { |
| 5 | axios.get(UrlBase + `/file/list?path=${relative_path}`).then((response) => { |
| 6 | callback(response); |
| 7 | }); |
| 8 | } |
| 9 | |
| 10 | export const UploadFile = (file,relative_path,callback) => { |
| 11 | const formData = new FormData(); |