基础1
This commit is contained in:
parent
59260695e2
commit
6b26b15ca9
3
env.js
Normal file
3
env.js
Normal file
@ -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
|
||||||
7
src/core/index.js
Normal file
7
src/core/index.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// 挂载变量
|
||||||
|
import {
|
||||||
|
BASE_URL,
|
||||||
|
API_URL,
|
||||||
|
IMG_URL
|
||||||
|
} from '../../env.js';
|
||||||
|
|
||||||
0
src/core/store/index.js
Normal file
0
src/core/store/index.js
Normal file
Loading…
x
Reference in New Issue
Block a user