|
@@ -1,6 +1,5 @@
|
|
import axios from 'axios'
|
|
import axios from 'axios'
|
|
import { Message, MessageBox } from 'element-ui';
|
|
import { Message, MessageBox } from 'element-ui';
|
|
-import Router from 'vue-router'
|
|
|
|
const service = axios.create({
|
|
const service = axios.create({
|
|
timeout: 10000
|
|
timeout: 10000
|
|
});
|
|
});
|
|
@@ -33,9 +32,7 @@ const service = axios.create({
|
|
beforeClose: function (action, instance, done) {
|
|
beforeClose: function (action, instance, done) {
|
|
if (action == 'confirm') {
|
|
if (action == 'confirm') {
|
|
sessionStorage.clear()
|
|
sessionStorage.clear()
|
|
- Router.replace({
|
|
|
|
- path: '/login'
|
|
|
|
- })
|
|
|
|
|
|
+ window.location.href = '/login'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|