From be1fe29bb9a17ef337903e30d3db447b7459846a Mon Sep 17 00:00:00 2001 From: Neeraj Sharma Date: Thu, 7 Nov 2019 18:44:17 +0530 Subject: [PATCH] implement number of student data card in dashboard --- src/api/menu.js | 2 +- src/pages/Authentication/Login.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/menu.js b/src/api/menu.js index 38d6e46..d143d76 100644 --- a/src/api/menu.js +++ b/src/api/menu.js @@ -85,7 +85,7 @@ const Menu = [ items: [ { name: 'libraryMember', title: ' Library Member', component: 'libraryMember', action: '', }, { name: 'Books', title: 'Books', component: 'Books', action: '', }, - // { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, + { name: 'Issue', title: ' Issue', component: 'Issue', action: '', }, { name: 'eBooks', title: 'E-Books', component: 'eBooks', action: '', } ] diff --git a/src/pages/Authentication/Login.vue b/src/pages/Authentication/Login.vue index 1bd972e..1b9be62 100644 --- a/src/pages/Authentication/Login.vue +++ b/src/pages/Authentication/Login.vue @@ -123,7 +123,7 @@ export default { this.$store.dispatch("setToken", response.data.data.token); this.$store.dispatch("Id", response.data.data.id); this.loading = false; - this.$router.push("/teachers"); + this.$router.push("/dashboard"); }) .catch(error => { if (error) { @@ -141,7 +141,7 @@ export default { }, mounted() { if (this.$store.state.isUserLoggedIn == true) { - this.$router.push("/teachers"); + this.$router.push("/dashboard"); } }, computed: { -- 2.0.0