接口修改

This commit is contained in:
ctw committed 2025-01-07 14:08:31 +08:00
1 parent c966bc423f
commit 3e8a172fa5
2 files changed
+5 -11

No files matched your search

+3 -3
View File
@@ -20,10 +20,10 @@ VITE_OAUTH2_APP_CLIENT='mini:mini'
VITE_IMAGE_BASE_PATH = http://localhost:9999
# ******************** start 开发环境 start ********************
# VITE_APP_DEV_SERVICE =http://123.156.228.134:48080/app-api
VITE_APP_DEV_SERVICE =http://123.156.228.134:48080/app-api
# VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/app-api
# VITE_APP_DEV_SERVICE = http://192.168.101.24:48080/app-api
VITE_APP_DEV_SERVICE = http://localhost:9999
VITE_APP_DEV_SERVICE = http://192.168.101.24:48080/app-api
# VITE_APP_DEV_SERVICE = http://localhost:9999
# ******************** end 开发环境 end ********************
+2 -8
View File
@@ -8,14 +8,8 @@ import { useRouter } from "./src/sheep";
import { filePath } from "./src/sheep/utils/file-path";
export default defineConfig(({ mode }) => {
const {
NODE_ENV,
VITE_APP_DEV_SERVICE,
VITE_APP_PROD_SERVICE,
VITE_IMAGE_BASE_PATH,
} = loadEnv(mode, process.cwd(), "");
const baseUrl =
NODE_ENV == "development" ? VITE_APP_DEV_SERVICE : VITE_APP_PROD_SERVICE;
const { NODE_ENV, VITE_APP_DEV_SERVICE, VITE_APP_PROD_SERVICE, VITE_IMAGE_BASE_PATH } = loadEnv(mode, process.cwd(), "");
const baseUrl = NODE_ENV == "development" ? VITE_APP_DEV_SERVICE : VITE_APP_PROD_SERVICE;
return {
build: {
target: "es6",