Merge branch 'abp' of https://gitee.com/ccnetcore/Yi into abp
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# 接口前缀
|
||||
VITE_APP_BASEAPI="/api-dev"
|
||||
VITE_APP_URL="http://123.207.63.87/api/app"
|
||||
VITE_APP_URL="http://123.207.63.87:19001/api/app"
|
||||
VITE_APP_ENV_NAME = "dev"
|
||||
@@ -1,4 +1,4 @@
|
||||
# 接口前缀
|
||||
VITE_APP_BASEAPI="/prod-api"
|
||||
VITE_APP_URL="http://123.207.63.87/api/app"
|
||||
VITE_APP_URL="http://123.207.63.87:19001/api/app"
|
||||
VITE_APP_ENV_NAME = "production"
|
||||
@@ -8,7 +8,7 @@ const { VITE_APP_ENV_NAME } = import.meta.env;
|
||||
const { getToken } = useAuths();
|
||||
|
||||
const { base_url, request_timeout, pre_interface } = config;
|
||||
export const PATH_URL = base_url[VITE_APP_ENV_NAME] + pre_interface;
|
||||
export const PATH_URL = base_url[VITE_APP_ENV_NAME];
|
||||
|
||||
// 配置新建一个 axios 实例
|
||||
const service = axios.create({
|
||||
|
||||
Reference in New Issue
Block a user