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 } })