From c5b4fbdebd4f2d10a617ba87b5a1f35e1c346714 Mon Sep 17 00:00:00 2001 From: lishenfeng Date: Mon, 31 Mar 2025 09:14:51 +0800 Subject: [PATCH] =?UTF-8?q?fix():=20=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/setMapStation/drp.js | 4 +++- src/views/sq/qth/ssyq/index.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/Home/setMapStation/drp.js b/src/views/Home/setMapStation/drp.js index a8cbe9ce7..e6f99957a 100644 --- a/src/views/Home/setMapStation/drp.js +++ b/src/views/Home/setMapStation/drp.js @@ -27,8 +27,10 @@ export default function SetDrpStation({tms, setTableData}) { "stm": tms[0], "etm": tms[1] }) + if (code !== 200) { - message.error(msg || '请求失败'); + message.error(msg || '请求失败'); + return; } const list = data.map((i)=>{ return { diff --git a/src/views/sq/qth/ssyq/index.js b/src/views/sq/qth/ssyq/index.js index c4e5a87d9..af246786c 100644 --- a/src/views/sq/qth/ssyq/index.js +++ b/src/views/sq/qth/ssyq/index.js @@ -13,7 +13,8 @@ export default function Sksq() { const getData1 = async () => { const { data, code, msg } = await httppost2(apiurl.home.yq) if (code !== 200) { - message.error(msg || '请求失败'); + message.error(msg || '请求失败'); + return; } const list = data.map((i)=>{ return {