diff --git a/src/components/baozuo-demo/test.js b/src/components/baozuo-demo/test.js index 381cc88..e910dfb 100644 --- a/src/components/baozuo-demo/test.js +++ b/src/components/baozuo-demo/test.js @@ -3212,7 +3212,9 @@ function getCurrentAddress() { if(getCurrentAddress().includes('192.168')){ console.log('当前环境为开发环境'); api.post2('/api/web/getBiData').then(res => { - testRes = res; + if(res.code === 200){ + testRes = res; + } }) }else{ console.log('当前环境为生产环境');