Browse Source

1、增加upload.ts文件

master
bjang03 6 months ago
parent
commit
e4105375f0
  1. 11
      src/api/upload.ts

11
src/api/upload.ts

@ -0,0 +1,11 @@
import upload from '@/api/uploadHttp'
// import request from '@/utils/request'
// 上传
export function uploadFile(data) {
return upload({
url: '/infra/file/upload',
method: 'post',
filePath:data.filePath,
name: data.name
})
}
Loading…
Cancel
Save