提交 067753d4 编写于 作者: 无木

feat(env): `VITE_PROXY` support single quote

env文件中的VITE_PROXY配置支持单引号

close: #1204
上级 7b6d5e44
### ✨ Features
- **其它** `.env`文件中的`VITE_PROXY`配置支持单引号
### 🐛 Bug Fixes
- **BasicTable**
......
......@@ -28,9 +28,9 @@ export function wrapperEnv(envConf: Recordable): ViteEnv {
if (envName === 'VITE_PORT') {
realName = Number(realName);
}
if (envName === 'VITE_PROXY') {
if (envName === 'VITE_PROXY' && realName) {
try {
realName = JSON.parse(realName);
realName = JSON.parse(realName.replace(/'/g, '"'));
} catch (error) {
realName = '';
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册