Fix double /api prefix in axios baseURL
This commit is contained in:
parent
2279d2a321
commit
5f20558e78
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ import axios from 'axios'
|
||||||
|
|
||||||
// 创建axios实例
|
// 创建axios实例
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: '/api',
|
baseURL: '',
|
||||||
timeout: 300000, // 5分钟超时(本体生成可能需要较长时间)
|
timeout: 300000, // 5分钟超时(本体生成可能需要较长时间)
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue