From 8b3e7cd6f6bc7cb8babb7af4255522378e180d57 Mon Sep 17 00:00:00 2001 From: yyj <290405616@qq.com> Date: Fri, 19 Jan 2024 16:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4request=E4=B8=ADurl=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=B8=BA.env=E8=AE=BE=E7=BD=AE=E7=9A=84=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/request/index.js | 2 +- sheep/request2/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sheep/request/index.js b/sheep/request/index.js index 120859fb..31d25806 100644 --- a/sheep/request/index.js +++ b/sheep/request/index.js @@ -215,7 +215,7 @@ const request = (config) => { // TODO 芋艿:额外拼接 if (config.url.indexOf('/app-api/') >= 0) { // config.url = 'http://api-dashboard.yudao.iocoder.cn' + config.url; // 调用【云端】 - config.url = 'http://127.0.0.1:48080' + config.url; // 调用【本地】 + config.url = baseUrl + config.url; // 调用【本地】 // config.url = 'http://yunai.natapp1.cc' + config.url; // 调用【natapp】 } return http.middleware(config); diff --git a/sheep/request2/index.js b/sheep/request2/index.js index 6d4815fc..2dc2fa84 100644 --- a/sheep/request2/index.js +++ b/sheep/request2/index.js @@ -217,7 +217,7 @@ const request = (config) => { // 设置接口地址 // config.url = 'http://api-dashboard.yudao.iocoder.cn' + config.url; // 调用【云端】 // config.url = 'https://app.test.huizhizao.vip/prod-api' + config.url; // 调用【云端】 - config.url = 'http://127.0.0.1:48080' + config.url; // 调用【本地】 + config.url = baseUrl + config.url; // 调用【本地】 // config.url = 'http://yunai.natapp1.cc' + config.url; // 调用【natapp】 } return http.middleware(config);