init project

This commit is contained in:
2023-06-15 10:20:50 +08:00
parent fe5fd4f2ea
commit 832d9579f2
936 changed files with 69470 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)
}