diff --git a/src/router/index.js b/src/router/index.js index 824c290..ee65a2b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -64,8 +64,7 @@ export const constantRoutes = [ { path: '', component: Layout, - // redirect: 'index', - redirect: '/system/user' + redirect: '/hazard/ledger' // children: [ // { // path: 'index', @@ -159,6 +158,12 @@ export const constantRoutes = [ component: Layout, hidden: true, children: [ + { + path: 'ledger', + component: () => import('@/views/hazard/ledger/index'), + name: 'HazardLedgerHome', + meta: { title: '隐患台账' } + }, { path: 'audit/detail', component: () => import('@/views/hazard/audit/index'), @@ -170,7 +175,7 @@ export const constantRoutes = [ { path: '/', component: Layout, - redirect: '/index', + redirect: '/hazard/ledger' } // { // path: '/tool', diff --git a/src/views/login.vue b/src/views/login.vue index cf7549b..de36f7c 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -124,8 +124,7 @@ export default { Cookies.remove('rememberMe'); } this.$store.dispatch("Login", this.loginForm).then(() => { - // this.$router.push({ path: this.redirect || "/questionModule/questionList" }).catch(()=>{}); - this.$router.push({ path: "/questionModule/index" }).catch(()=>{}); + this.$router.push({ path: this.redirect || '/hazard/ledger' }).catch(() => {}) }).catch(() => { this.loading = false; if (this.captchaEnabled) { @@ -282,4 +281,3 @@ export default { } } - diff --git a/src/views/points/management/index.vue b/src/views/points/management/index.vue index b0d88b8..58ffe0a 100644 --- a/src/views/points/management/index.vue +++ b/src/views/points/management/index.vue @@ -1,9 +1,7 @@ - - + +