Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config 如何配置? #5

Open
XiaoLiz opened this issue Sep 18, 2018 · 1 comment
Open

config 如何配置? #5

XiaoLiz opened this issue Sep 18, 2018 · 1 comment

Comments

@XiaoLiz
Copy link

XiaoLiz commented Sep 18, 2018

image

@moyupoi
Copy link
Owner

moyupoi commented Nov 14, 2018

/* ========================================================
小程序配置文件
======================================================== */
// 环境
var isFormal = true
// 域名
var host = isFormal ? 'https://api-xxx-pro.xxx.com' : 'https://api-xxx-staging.xxx.com'
export const service = {
isFormal: isFormal,
xxx: ${host}/v1/xxx/,
xxx: ${host}/v1/xxx/,
// 主域
host
}
export default {
service
}

大概是这样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants