diff --git a/src/permission.js b/src/permission.js
index 6034239..3e4cf08 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -16,7 +16,7 @@ router.beforeEach((to, from, next) => {
to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
/* has token*/
if (to.path === '/login') {
- next({path: '/'})
+ next({path: '/overview'})
NProgress.done()
} else {
if (store.getters.roles.length === 0) {
@@ -32,7 +32,7 @@ router.beforeEach((to, from, next) => {
}).catch(err => {
store.dispatch('LogOut').then(() => {
Message.error(err)
- next({path: '/'})
+ next({path: '/overview'})
})
})
} else {
diff --git a/src/views/index.vue b/src/views/index.vue
index 0b5f48b..fb0409b 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1,6 +1,8 @@