初始化

This commit is contained in:
lyd
2022-10-15 15:31:18 +08:00
parent b9d1c04bb5
commit c61b5e4641
1123 changed files with 187 additions and 1440 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)
}