add platform

This commit is contained in:
xiaomlove
2021-06-22 18:51:58 +08:00
parent 5a5733cf0b
commit 76a6ad6ed3
5 changed files with 38 additions and 1 deletions
+1
View File
@@ -10,6 +10,7 @@ axios.defaults.withCredentials = true
axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest'
axios.defaults.headers['Content-Type'] = 'application/json'
axios.defaults.headers['Accept'] = 'application/json'
axios.defaults.headers['Platform'] = 'admin'
// axios.defaults.headers['Authorization'] = 'Bearer ' + localGet('token')
axios.interceptors.request.use(config => {