Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

merge icon
dev_tpm_ui
tangjiang 5 years ago
commit a7e25f4e13

@ -10,7 +10,7 @@ const $ = window.$;
const opens ="79e33abd4b6588941ab7622aed1e67e8"; const opens ="79e33abd4b6588941ab7622aed1e67e8";
let timestamp; let timestamp;
let checkSubmitFlg = false; let checkSubmitFlg = false;
let message501=false;
broadcastChannelOnmessage('refreshPage', () => { broadcastChannelOnmessage('refreshPage', () => {
window.location.reload() window.location.reload()
}) })
@ -225,6 +225,8 @@ export function initAxiosInterceptors(props) {
} }
if (response.data.status === 501) { if (response.data.status === 501) {
if(message501===false){
message501=true
notification.open({ notification.open({
message:"提示", message:"提示",
description:response.data.message || '访问异常,请求不合理', description:response.data.message || '访问异常,请求不合理',
@ -233,6 +235,10 @@ export function initAxiosInterceptors(props) {
} }
}) })
} }
window.setTimeout(function () {
message501=false
}, 2000);
}
// if (response.data.status === 402) { // if (response.data.status === 402) {

Loading…
Cancel
Save