This commit is contained in:
USER-20220102CG\noblelift
2023-03-27 15:39:20 +08:00
parent 87d6c0f8d1
commit 81bfa90bd3
1430 changed files with 141780 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)
}