mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-12-01 17:37:14 +00:00
fix: api.js baseURL 改为相对路径,修复反向代理下请求绕过代理的问题
This commit is contained in:
1 parent
0e14c9a925
commit
77c953626f
1 file changed
+1
-1
@@ -2,7 +2,7 @@ import axios from 'axios'
|
||||
|
||||
// 创建 axios 实例
|
||||
const api = axios.create({
|
||||
baseURL: process.env.VUE_APP_API_BASE_URL || 'http://localhost:6400',
|
||||
baseURL: process.env.VUE_APP_API_BASE_URL || '',
|
||||
timeout: 30000,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
||||
Reference in new issue
Block a user