This commit is contained in:
USER-20220102CG\noblelift
2022-10-27 18:58:02 +08:00
parent 7ca4fb98c4
commit 3da7abdd8d
1308 changed files with 122315 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import axios from 'axios'
import { getToken } from '@/utils/auth'
export function upload(api, file) {
var data = new FormData()
data.append('file', file)
const config = {
headers: { 'Authorization': getToken() }
}
return axios.post(api, data, config)
}