feat(SingleUpload.vue): upload组件封

This commit is contained in:
有来技术
2021-12-26 12:55:27 +08:00
parent 5d6aa9a09d
commit 42decdb662
2 changed files with 132 additions and 0 deletions

9
src/api/system/file.ts Normal file
View File

@@ -0,0 +1,9 @@
import request from '@/utils/request'
export function deleteFile(path: string) {
return request({
url: '/youlai-admin/api/v1/files',
method: 'delete',
params: {path: path}
})
}