//webpack.config.jsproxy: { '/drink': { target: "http://xxx.26.xx.75:8010/channelFreeDrink/", changeOrigin:true, pathRewrite: { '^/drink': '' } } }
//api.jsconst sourcelist = ()=>{ return new Promise((resolve,reject)=>{ // fetch(window.YY_API + '/channelFreeDrink/activity').then(res => { fetch('/drink/activity').then(res => { if(res.status==200) return res.json() }).then(data=>{ resolve(data) }) })}