diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 618793657..d65601ac1 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -10,7 +10,7 @@ const $ = window.$; const opens ="79e33abd4b6588941ab7622aed1e67e8"; let timestamp; let checkSubmitFlg = false; - +let message501=false; broadcastChannelOnmessage('refreshPage', () => { window.location.reload() }) @@ -225,13 +225,19 @@ export function initAxiosInterceptors(props) { } if (response.data.status === 501) { - notification.open({ - message:"提示", - description:response.data.message || '访问异常,请求不合理', - style: { - zIndex: 99999999 - } - }) + if(message501===false){ + message501=true + notification.open({ + message:"提示", + description:response.data.message || '访问异常,请求不合理', + style: { + zIndex: 99999999 + } + }) + } + window.setTimeout(function () { + message501=false + }, 2000); }