From 88bd7e70e4e7bad9565fee831e19ba4c99ed4be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Thu, 24 Sep 2026 16:31:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=EF=BC=8C=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E7=9A=84=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/admin/.env | 8 ++++++++ frontend/admin/.env.dev | 9 +++++++++ frontend/uni-app/.env | 4 ++++ frontend/uni-app/.env.development | 3 +++ 4 files changed, 24 insertions(+) create mode 100644 frontend/admin/.env create mode 100644 frontend/admin/.env.dev create mode 100644 frontend/uni-app/.env create mode 100644 frontend/uni-app/.env.development diff --git a/frontend/admin/.env b/frontend/admin/.env new file mode 100644 index 000000000..9f3e00016 --- /dev/null +++ b/frontend/admin/.env @@ -0,0 +1,8 @@ +# 所有环境默认 + +# 页面 title +VITE_APP_TITLE=CRMEB +# socket 客服连接地址 +VITE_APP_WS_KEFU_URL= +# socket 系统连接地址 +VITE_APP_WS_ADMIN_URL= diff --git a/frontend/admin/.env.dev b/frontend/admin/.env.dev new file mode 100644 index 000000000..1588b55e5 --- /dev/null +++ b/frontend/admin/.env.dev @@ -0,0 +1,9 @@ +# 接口请求地址(留空 = 同源 /adminapi,开发环境走 vite 代理到 localhost:8011) +# 如需直连其他后端(如联调环境),取消下行注释并修改 +# VITE_APP_API_URL=https://demo.crmeb.com/adminapi +VITE_APP_API_URL = +# 环境 +VITE_APP_ENV = dev +# 页面 title +VITE_APP_TITLE = CRMEB +VITE_APP_H5_URL = http://localhost:5173 diff --git a/frontend/uni-app/.env b/frontend/uni-app/.env new file mode 100644 index 000000000..11ac74032 --- /dev/null +++ b/frontend/uni-app/.env @@ -0,0 +1,4 @@ +# 公共环境变量(dev / build 所有模式、所有平台生效) +# 接口地址:留空时回退 src/config/app.js 内各端默认值(MP/APP: demo 地址,H5: 当前域名) +# 优先级:.env.local > .env.[development|production] > .env +UNI_APP_API_URL = diff --git a/frontend/uni-app/.env.development b/frontend/uni-app/.env.development new file mode 100644 index 000000000..a50b695c3 --- /dev/null +++ b/frontend/uni-app/.env.development @@ -0,0 +1,3 @@ +# 开发环境(npm run dev:*) +# H5 本地联调的后端地址(原 config/app.js 硬编码值迁入;小程序/APP 真机联调也走此地址) +UNI_APP_API_URL =