diff --git a/src/pages/admin/router.js b/src/pages/admin/router.js index 0e13e75b1..8f698a579 100644 --- a/src/pages/admin/router.js +++ b/src/pages/admin/router.js @@ -21,6 +21,7 @@ export default new VueRouter({ children: [ { path: '', + name: 'dashboard', component: Dashboard }, { diff --git a/src/pages/admin/views/general/Login.vue b/src/pages/admin/views/general/Login.vue index e97f02a9d..8ea7042ef 100644 --- a/src/pages/admin/views/general/Login.vue +++ b/src/pages/admin/views/general/Login.vue @@ -44,7 +44,7 @@ this.logining = true api.login(this.ruleForm2.account, this.ruleForm2.password).then(data => { this.logining = false - this.$router.push({name: 'problem-list'}) + this.$router.push({name: 'dashboard'}) }, () => { this.logining = false })