feat: There is no way the ie 8-11
This commit is contained in:
@@ -58,6 +58,14 @@ _axios.interceptors.request.use(
|
||||
*/
|
||||
_axios.interceptors.response.use(
|
||||
res => {
|
||||
// IE 8-9
|
||||
if (res.data == null && res.config.responseType === 'json' && res.request.responseText != null) {
|
||||
try {
|
||||
res.data = JSON.parse(response.request.responseText);
|
||||
} catch (e) {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
if(res.data && res.data.respCode && res.data.respCode === 'LE505'){
|
||||
window.sessionStorage.clear()
|
||||
messageOnce.warning({
|
||||
|
||||
@@ -53,6 +53,14 @@ service.interceptors.request.use(
|
||||
*/
|
||||
service.interceptors.response.use(
|
||||
res => {
|
||||
// IE 8-9
|
||||
if (res.data == null && res.config.responseType === 'json' && res.request.responseText != null) {
|
||||
try {
|
||||
res.data = JSON.parse(response.request.responseText);
|
||||
} catch (e) {
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
if(res.data && res.data.respCode != undefined && res.data.respCode === 'LE505'){
|
||||
window.sessionStorage.clear()
|
||||
messageOnce.warning({
|
||||
|
||||
Reference in New Issue
Block a user