|
|
@@ -108,6 +108,18 @@ service.interceptors.response.use(res => {
|
|
|
})
|
|
|
})
|
|
|
return res.data;
|
|
|
+ } else if (code === 502) {
|
|
|
+ MessageBox.confirm('您的账号企业权限发生变化,请重新登录!', '系统提示', {
|
|
|
+ confirmButtonText: '重新登录',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }
|
|
|
+ ).then(() => {
|
|
|
+ store.dispatch('LogOut').then(() => {
|
|
|
+ location.href = '/home';
|
|
|
+ })
|
|
|
+ })
|
|
|
+ return res.data;
|
|
|
} else if (code !== 200) {
|
|
|
Notification.error({
|
|
|
title: msg
|