From f7a08e06a9f4e282fc5c50eaaafc2c1e86596c34 Mon Sep 17 00:00:00 2001 From: ldh Date: Tue, 7 Feb 2023 14:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env | 4 +++- sheep/config/index.js | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/env b/env index eaf740eb..f5c81bbc 100644 --- a/env +++ b/env @@ -11,4 +11,6 @@ SHOPRO_DEV_PORT = 3000 SHOPRO_API_PATH = /shop/api/ # 客户端静态资源地址 空=默认使用服务端指定的CDN资源地址前缀 | local=本地 | http(s)://xxx.xxx=自定义静态资源地址前缀 -SHOPRO_STATIC_URL = https://file.sheepjs.com \ No newline at end of file +SHOPRO_STATIC_URL = https://file.sheepjs.com + +SHOPRO_VERSION = v1.1.15 \ No newline at end of file diff --git a/sheep/config/index.js b/sheep/config/index.js index 6f737f6a..dfd5bbb7 100644 --- a/sheep/config/index.js +++ b/sheep/config/index.js @@ -1,12 +1,13 @@ // 开发环境配置 export let baseUrl; - +export let version; if (process.env.NODE_ENV === 'development') { baseUrl = import.meta.env.SHOPRO_DEV_BASE_URL; } else { baseUrl = import.meta.env.SHOPRO_BASE_URL; } -console.log(`[Shopro v1.0.8] https://www.sheepjs.com/`); +version = import.meta.env.SHOPRO_VERSION; +console.log(`[Shopro ${version}] https://www.sheepjs.com/`); export const apiPath = import.meta.env.SHOPRO_API_PATH; export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;