wepy how to read appConfig

uyhoqukh  于 2022-10-20  发布在  其他
关注(0)|答案(1)|浏览(243)

appConfig: {
noPromiseAPI: ['createSelectorQuery'],
baseUrl: prod ? ' http://sa.xxx.vip/ ' : ' http://sat.xxx.vip/ '
}

console.log(wepy.$appConfig.baseUrl);

show error:
Cannot read property 'baseUrl' of undefined
TypeError: Cannot read property 'baseUrl' of undefined

相关问题