This commit is contained in:
李志鹏
2025-10-24 13:19:01 +08:00
parent 9fff109c77
commit abb5dc3ce4
5 changed files with 21 additions and 77 deletions

View File

@@ -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'; //配置语言请求头