feat(接口配置文件): 接口路径“https://api.likeichat.com”改成“https://api.azizichat.com”
This commit is contained in:
parent
d7340b86f0
commit
bd6900bb1d
@ -1,4 +1,4 @@
|
|||||||
# 生产环境
|
# 生产环境
|
||||||
VITE_NODE_ENV=production
|
VITE_NODE_ENV=production
|
||||||
VITE_API_BASE_URL=https://api.likeichat.com
|
VITE_API_BASE_URL=https://api.azizichat.com
|
||||||
VITE_APP_TITLE=Azizi H5
|
VITE_APP_TITLE=Azizi H5
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# 测试环境
|
# 测试环境
|
||||||
VITE_NODE_ENV=test
|
VITE_NODE_ENV=test
|
||||||
VITE_API_BASE_URL=https://test-api.likeichat.com
|
VITE_API_BASE_URL=https://test-api.azizichat.com
|
||||||
VITE_APP_TITLE=Azizi H5 (Test)
|
VITE_APP_TITLE=Azizi H5 (Test)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
// 环境类型
|
// 环境类型
|
||||||
export const ENV_TYPES = {
|
export const ENV_TYPES = {
|
||||||
DEVELOPMENT: 'development',
|
DEVELOPMENT: 'development',
|
||||||
TEST: 'test'
|
TEST: 'test',
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取当前用户Token
|
// 获取当前用户Token
|
||||||
@ -20,7 +20,7 @@ export function getCurrentEnv() {
|
|||||||
|
|
||||||
// 获取 API 基础 URL
|
// 获取 API 基础 URL
|
||||||
export function getApiBaseUrl() {
|
export function getApiBaseUrl() {
|
||||||
return import.meta.env.VITE_API_BASE_URL || 'https://api.likeichat.com'
|
return import.meta.env.VITE_API_BASE_URL || 'https://api.azizichat.com'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取应用标题
|
// 获取应用标题
|
||||||
@ -57,7 +57,7 @@ export function getEnvConfig() {
|
|||||||
isDevelopment: isDevelopment(),
|
isDevelopment: isDevelopment(),
|
||||||
isTest: isTest(),
|
isTest: isTest(),
|
||||||
isProduction: isProduction(),
|
isProduction: isProduction(),
|
||||||
isDebugMode: isDebugMode()
|
isDebugMode: isDebugMode(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user