feat: add VITE_APP_PROXY 控制H5代理

This commit is contained in:
菲鸽
2024-05-18 17:24:21 +08:00
parent 4789b5ba41
commit b83541d483
5 changed files with 34 additions and 8 deletions

2
src/env.d.ts vendored
View File

@@ -15,6 +15,8 @@ interface ImportMetaEnv {
readonly VITE_SERVER_PORT: string
/** 后台接口地址 */
readonly VITE_SERVER_BASEURL: string
/** H5是否需要代理 */
readonly VITE_APP_PROXY: boolean
/** 上传图片地址 */
readonly VITE_UPLOAD_BASEURL: string
/** 是否清除console */