123
This commit is contained in:
@@ -12,7 +12,8 @@ console.log(import.meta.env.VITE_APP_URL,123)
|
||||
const service = axios.create({
|
||||
baseURL: import.meta.env.VITE_APP_URL, // api的base_url
|
||||
// baseURL: import.meta.env.VITE_APP_URL, // api的base_url
|
||||
timeout: 5000 // 请求超时时间
|
||||
timeout: 5000, // 请求超时时间
|
||||
loading: false,
|
||||
})
|
||||
axios.defaults.headers.post["Content-Type"] = "application/json";
|
||||
axios.defaults.headers.post['lang'] = 'en'; //配置语言请求头
|
||||
|
||||
Reference in New Issue
Block a user