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 {