mirror of
https://github.com/jackhh66/ChatGPT_Web_accessToken.git
synced 2026-12-03 20:49:37 +00:00
fix: 还原配置
This commit is contained in:
1 parent
c0f8e4316e
commit
b84f7e4c72
4 files changed
+12
-7
No files matched your search
Vendored
+1
-1
@@ -3,5 +3,5 @@
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_GLOB_API_URL: string;
|
||||
readonly VITE_GLOB_API_TIMEOUT: string;
|
||||
readonly VITE_GLOB_HTTP_PROXY: 'Y' | 'N';
|
||||
readonly VITE_APP_API_BASE_URL: string;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios, { type AxiosResponse } from 'axios'
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: import.meta.env.VITE_GLOB_HTTP_PROXY === 'Y' ? '/api' : import.meta.env.VITE_GLOB_API_URL,
|
||||
baseURL: import.meta.env.VITE_GLOB_API_URL,
|
||||
timeout: !isNaN(+import.meta.env.VITE_GLOB_API_TIMEOUT) ? Number(import.meta.env.VITE_GLOB_API_TIMEOUT) : 60 * 1000,
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user