init 二期ACS

This commit is contained in:
USER-20220102CG\noblelift
2024-01-16 16:31:20 +08:00
parent 2b40bf51ee
commit 3da40b153d
1823 changed files with 186650 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)
}