From 95a485cfc4c971bf80abcbf5b3f50da333611d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Tue, 25 Apr 2023 02:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=9C=80=E8=A6=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E5=9C=B0=E6=96=B9=E6=B7=BB=E5=8A=A0=20FIXME?= =?UTF-8?q?=20=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E6=9F=A5=E6=89=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {backend-mock => @deprecated/backend-mock}/index.js | 0 TODOs.md | 4 ++++ client-entrance-guard/html/index.html | 7 +++++++ frontend/src/utils/settings.js | 8 +++++++- weixin-miniprogram/app.js | 11 ++++++++--- 5 files changed, 26 insertions(+), 4 deletions(-) rename {backend-mock => @deprecated/backend-mock}/index.js (100%) diff --git a/backend-mock/index.js b/@deprecated/backend-mock/index.js similarity index 100% rename from backend-mock/index.js rename to @deprecated/backend-mock/index.js diff --git a/TODOs.md b/TODOs.md index 6287344..5f8081a 100644 --- a/TODOs.md +++ b/TODOs.md @@ -45,6 +45,10 @@ Java代码中小程序AppID、密钥处理,小程序代码中小程序AppID处 # TODO 全部域名配置的地方添加 FIXME 环境配置 +# VSCode 全局搜索排除 + +node_modules,./postman-collection,target,out,.idea,@deprecated + # host 文件地址 C:\Windows\System32\drivers\etc diff --git a/client-entrance-guard/html/index.html b/client-entrance-guard/html/index.html index e8f3686..186e3c8 100644 --- a/client-entrance-guard/html/index.html +++ b/client-entrance-guard/html/index.html @@ -11,6 +11,13 @@ + diff --git a/frontend/src/utils/settings.js b/frontend/src/utils/settings.js index 6b9aba1..bdebaa1 100644 --- a/frontend/src/utils/settings.js +++ b/frontend/src/utils/settings.js @@ -22,6 +22,12 @@ export default { /** * 后端接口请求地址 * (结尾加不加 / 都可) + * + * FIXME 环境配置 + * + * backendHost + * - 线上环境:"https://epp.only4.work/" + * - 开发环境:"http://localhost/" */ - backendHost: "//epp.only4.work/", + backendHost: "http://localhost/", }; diff --git a/weixin-miniprogram/app.js b/weixin-miniprogram/app.js index 521442f..55d9917 100644 --- a/weixin-miniprogram/app.js +++ b/weixin-miniprogram/app.js @@ -22,9 +22,14 @@ App({ }, globalData: { // debugMode: true, // 是否展示调试内容 - baseUrl: true ? // Api 请求域名 不带最后的 / - "https://epp.only4.work" : - "http://localhost", + /** + * FIXME 环境配置 + * + * baseUrl + * - 线上环境:'https://epp.only4.work' + * - 开发环境:'http://localhost' + */ + baseUrl: "http://localhost", // Api 请求域名 不带最后的 / userInfo: null } })