From 9403e17b299339b13f4d1738daf85d9dd5cb249b Mon Sep 17 00:00:00 2001 From: ch Date: Sat, 7 May 2022 10:11:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0API=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- env.config.js | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 229fd8c..535f6aa 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-05-05 15:39:29 * @LastEditors: ch - * @LastEditTime: 2022-05-07 10:05:27 + * @LastEditTime: 2022-05-07 10:10:29 * @Description: file content --> # shop-pc @@ -84,3 +84,5 @@ export { ``` ## css - 采用BEM命名法 + + diff --git a/env.config.js b/env.config.js index 24f3203..974ce59 100644 --- a/env.config.js +++ b/env.config.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-05-05 14:40:00 * @LastEditors: ch - * @LastEditTime: 2022-05-07 10:05:44 + * @LastEditTime: 2022-05-07 10:09:54 * @Description: 根据git分支生成对应环境的环境变量 * 开发时如果环境变量换了,可以不用重启服务,直接运行node env.config.js即可 */ @@ -12,16 +12,16 @@ const getRepoInfo = require('git-repo-info'); const envConfig = { dev : { - base_url: 'dev' + base_url: 'https://k8s-horse-gateway.mashibing.cn' }, test : { - base_url: 'xxx' + base_url: 'https://k8s-horse-gateway.mashibing.cn' }, beta : { - base_url: 'xxx' + base_url: 'https://you-gateway.mashibing.com' }, prod : { - base_url: 'xxx' + base_url: 'https://you-gateway.mashibing.com' } } const branch = getRepoInfo().branch; // 调用获取git信息