新版ACS替换

This commit is contained in:
ldj_willow
2022-10-15 17:49:51 +08:00
parent 379c62251c
commit 3e96ffd65c
2335 changed files with 224554 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)
}