mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
add env
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
VITE_API_BASE_URL=http://localhost:3001/api/v1/
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
VITE_API_BASE_URL=/api/v1/
|
||||||
+1
-1
@@ -4,7 +4,7 @@ import axios from 'axios'
|
|||||||
|
|
||||||
// 创建axios实例
|
// 创建axios实例
|
||||||
const api = axios.create({
|
const api = axios.create({
|
||||||
baseURL: '/api/v1/',
|
baseURL: import.meta.env.VITE_API_BASE_URL,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 添加请求拦截器
|
// 添加请求拦截器
|
||||||
|
|||||||
Reference in New Issue
Block a user