first commit

This commit is contained in:
ludj
2023-11-02 17:39:08 +08:00
commit a70597d289
2383 changed files with 182629 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)
}