|
|
@ -114,7 +114,7 @@ function ajax(ajaxData = {}) { |
|
|
|
if(JSON.parse(err.config.data)?.guard){ |
|
|
|
window.queryRecord[err.config.url].ing = false |
|
|
|
} |
|
|
|
if(location.hash.replace(/\?.*/, '') != JSON.parse(err.config.data)?.pageHash){ |
|
|
|
if(location.hash.replace(/\?.*/, '').replace('#/',"").replace('/', '_') != JSON.parse(err.config.data)?.pageHash){ |
|
|
|
console.log('接口异常,但页面已销毁') |
|
|
|
reject(new Error(1)) |
|
|
|
return |
|
|
@ -126,7 +126,7 @@ function ajax(ajaxData = {}) { |
|
|
|
window.queryRecord[err.config.url].ing = false |
|
|
|
} |
|
|
|
} |
|
|
|
if(location.hash.replace(/\?.*/, '') != err.config.params.pageHash){ |
|
|
|
if(location.hash.replace(/\?.*/, '').replace('#/',"").replace('/', '_') != err.config.params.pageHash){ |
|
|
|
console.log('接口异常,但页面已销毁') |
|
|
|
reject(new Error(1)) |
|
|
|
return |
|
|
|