diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 1696f54..5488ead 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -35,7 +35,7 @@ export default { const first = matched[0] if (!this.isDashboard(first)) { - matched = [{ path: '/index', meta: { title: '首页' }}].concat(matched) + matched = [{ path: '/abuwx/project', meta: { title: '项目管理' }}].concat(matched) } this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) diff --git a/src/router/index.js b/src/router/index.js index 750c3e4..baff7f9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -61,18 +61,18 @@ export const constantRoutes = [ component: () => import('@/views/error/401'), hidden: true }, - { - path: '', - component: Layout, - redirect: 'index', - children: [ - { - path: 'index', - component: () => import('@/views/abuwx/wxuser/index'), - name: 'Index', - } - ] - }, + // { + // path: '', + // component: Layout, + // redirect: 'index', + // children: [ + // { + // path: 'index', + // component: () => import('@/views/abuwx/wxuser/index'), + // name: 'Index', + // } + // ] + // }, { path: '/user', component: Layout, diff --git a/src/views/login.vue b/src/views/login.vue index fc5d8fe..f9a6c25 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -141,7 +141,7 @@ export default { Cookies.remove('rememberMe'); } this.$store.dispatch("Login", this.loginForm).then(() => { - this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); + this.$router.push({ path:'/abuwx/project' }).catch(()=>{}); }).catch(() => { this.loading = false; if (this.captchaEnabled) {