From d1621e78f143e01944f6bd1cb230396d7ff55c64 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Mon, 7 Jul 2025 09:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/config.js | 11 +++++++---- http/http.js | 3 ++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/commons/config.js b/commons/config.js index 627a49d..9648c09 100644 --- a/commons/config.js +++ b/commons/config.js @@ -1,19 +1,22 @@ //打包时修改env的值即可 -const env = 'production' //test,production,local +const env = 'local' //test,production,local export const encryptKey = '1234567890123456' // http数据加解密的key -export const apiUrl = '/czg/' +// export const apiUrl = '/czg/' +export const apiUrl = '/api/' export const h5Config = { production: 'https://web.hnsiyao.cn', test: 'https://web-api.hnsiyao.cn', - local: 'http://192.168.1.21:8100' + // local: 'http://192.168.1.21:8100', + local: 'http://192.168.1.43:1333', } export const AppConfig = { production: 'https://dj-api.hnsiyao.cn', test: 'https://web-api.hnsiyao.cn', - local: 'http://192.168.1.41:8100' + // local: 'http://192.168.1.21:8100', + local: 'http://192.168.1.43:1333', } export function returnShareUrl() { diff --git a/http/http.js b/http/http.js index b258bb1..8053b9d 100644 --- a/http/http.js +++ b/http/http.js @@ -9,7 +9,8 @@ import { import config from "@/commons/config.js"; // 测试服 -let baseUrl = config.baseApiUrl + "app"; +// let baseUrl = config.baseApiUrl + "app"; +let baseUrl = config.baseApiUrl; const loadingShowTime = 200; function getHeader(data) {