|
@@ -35,6 +35,7 @@ const err = (error) => {
|
|
|
message: '提示',
|
|
|
description: '无网络连接,请检查网络是否连接正常'
|
|
|
})
|
|
|
+ store.state.app.curActionPermission = ''
|
|
|
store.commit('SET_loadingStatus', false)
|
|
|
return Promise.reject(err)
|
|
|
}
|
|
@@ -46,6 +47,7 @@ const err = (error) => {
|
|
|
console.log(status,resData)
|
|
|
if ((status == 503 || status == 500 || status == 404)) {
|
|
|
notification.destroy()
|
|
|
+ store.state.app.curActionPermission = ''
|
|
|
if(resData instanceof Blob){
|
|
|
resData.text().then(data => {
|
|
|
const res = JSON.parse(data)
|
|
@@ -132,6 +134,7 @@ service.interceptors.response.use((response) => {
|
|
|
content: response.data.message,
|
|
|
onOk () {
|
|
|
sessionStorage.setItem('errorTips', 0)
|
|
|
+ store.state.app.curActionPermission = ''
|
|
|
store.dispatch('Logout').then(() => {
|
|
|
window.location.reload()
|
|
|
})
|
|
@@ -139,6 +142,7 @@ service.interceptors.response.use((response) => {
|
|
|
})
|
|
|
}
|
|
|
if ((response.data.status == '401' || response.data.status == '500') && window.location.pathname != '/user/login') {
|
|
|
+ store.state.app.curActionPermission = ''
|
|
|
notification.destroy()
|
|
|
notification.error({
|
|
|
message: '提示',
|
|
@@ -146,6 +150,7 @@ service.interceptors.response.use((response) => {
|
|
|
})
|
|
|
}
|
|
|
if (response.data.status == '900' && window.location.pathname != '/user/login') {
|
|
|
+ store.state.app.curActionPermission = ''
|
|
|
notification.destroy()
|
|
|
notification.error({
|
|
|
message: response.data.message,
|
|
@@ -153,6 +158,7 @@ service.interceptors.response.use((response) => {
|
|
|
})
|
|
|
}
|
|
|
if(response.data.status!='200'){
|
|
|
+ store.state.app.curActionPermission = ''
|
|
|
store.commit('SET_loadingStatus', false)
|
|
|
}
|
|
|
return response.data
|