From 6b26b15ca98b3ec8cca8a4343e2067a7c1a626cd Mon Sep 17 00:00:00 2001 From: liufumingren Date: Wed, 13 May 2026 17:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=801?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env.js | 3 +++ src/core/index.js | 7 +++++++ src/core/store/index.js | 0 3 files changed, 10 insertions(+) create mode 100644 env.js create mode 100644 src/core/index.js create mode 100644 src/core/store/index.js diff --git a/env.js b/env.js new file mode 100644 index 0000000..2beac7a --- /dev/null +++ b/env.js @@ -0,0 +1,3 @@ +export const BASE_URL = 'https://ye4s.wms.gztbyc.com/' //后台根域名 https://demo.shopro.top +export const API_URL = `${BASE_URL}/api/` //后台接口域名 +export const IMG_URL = 'https://ye4s.file.gzxunren.com' //全局网络图片地址变量,css背景图片地址变量在uni.scss diff --git a/src/core/index.js b/src/core/index.js new file mode 100644 index 0000000..d2a6535 --- /dev/null +++ b/src/core/index.js @@ -0,0 +1,7 @@ +// 挂载变量 +import { + BASE_URL, + API_URL, + IMG_URL +} from '../../env.js'; + diff --git a/src/core/store/index.js b/src/core/store/index.js new file mode 100644 index 0000000..e69de29