diff --git a/src/utils/request.js b/src/utils/request.js
index b7bf81c..92171ca 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -1,6 +1,7 @@
import axios from 'axios'
import { MessageBox, Message } from 'element-ui'
import store from '@/store'
+import router from '@/router'
// create an axios instance
const service = axios.create({
@@ -70,6 +71,7 @@ service.interceptors.response.use(
type: 'warning'
}).then(() => {
store.commit('user/RESET_STATE')
+ router.push('/login')
})
}
return Promise.reject(new Error(res.msg || 'Error'))
diff --git a/src/views/reagent/database/index.vue b/src/views/reagent/database/index.vue
index 0727ac7..b18d8f3 100644
--- a/src/views/reagent/database/index.vue
+++ b/src/views/reagent/database/index.vue
@@ -6,11 +6,11 @@