1、prod.js
const config = () => {return { host: 'http://localhost:9999' }}
module.exports = {config}
2、app.js
globalData: { miniBaseUrl: config.host + '/wechat-mini/digikey/' }
1、prod.js
const config = () => {return { host: 'http://localhost:9999' }}
module.exports = {config}
2、app.js
globalData: { miniBaseUrl: config.host + '/wechat-mini/digikey/' }