|
@@ -4,6 +4,7 @@ import router from '@/router'
|
|
|
import qs from 'qs'
|
|
|
import { clearLoginInfo } from '@/utils'
|
|
|
import isPlainObject from 'lodash/isPlainObject'
|
|
|
+import {MessageBox} from "element-ui";
|
|
|
|
|
|
const http = axios.create({
|
|
|
baseURL: window.SITE_CONFIG['apiURL'],
|
|
@@ -57,7 +58,13 @@ http.interceptors.response.use(response => {
|
|
|
localStorage.setItem('pathCopyshow',true)
|
|
|
}
|
|
|
clearLoginInfo()
|
|
|
- router.replace({ name: 'login' })
|
|
|
+ MessageBox.confirm(response.data.msg, '提示',{
|
|
|
+ showClose: false,
|
|
|
+ showCancelButton: false,
|
|
|
+ callback: () => {
|
|
|
+ router.replace({ name: 'login' })
|
|
|
+ }
|
|
|
+ })
|
|
|
return Promise.reject(response.data.msg)
|
|
|
}
|
|
|
return response
|