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