From d28e26fa71890f4126ce5a9ad9b378f8d9bc696a Mon Sep 17 00:00:00 2001 From: ljx <864490211@qq.com> Date: Sun, 27 Apr 2025 16:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=92=E9=80=9A=E5=A4=A7=EF=BC=8C=E8=A4=93?= =?UTF-8?q?=E5=BA=A7=20=E8=8E=B7=E5=8F=96=E7=9C=9F=E5=AE=9E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/baozuo-demo/test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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('当前环境为生产环境');