fix(): 修复bug

qzc-dev-demo
李神峰 2025-03-31 09:14:51 +08:00
parent 280ea1adb5
commit c5b4fbdebd
2 changed files with 5 additions and 2 deletions

View File

@ -27,8 +27,10 @@ export default function SetDrpStation({tms, setTableData}) {
"stm": tms[0], "stm": tms[0],
"etm": tms[1] "etm": tms[1]
}) })
if (code !== 200) { if (code !== 200) {
message.error(msg || '请求失败'); message.error(msg || '请求失败');
return;
} }
const list = data.map((i)=>{ const list = data.map((i)=>{
return { return {

View File

@ -13,7 +13,8 @@ export default function Sksq() {
const getData1 = async () => { const getData1 = async () => {
const { data, code, msg } = await httppost2(apiurl.home.yq) const { data, code, msg } = await httppost2(apiurl.home.yq)
if (code !== 200) { if (code !== 200) {
message.error(msg || '请求失败'); message.error(msg || '请求失败');
return;
} }
const list = data.map((i)=>{ const list = data.map((i)=>{
return { return {