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;