diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 204ea59..dd2d97b 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -36,9 +36,9 @@ export default { let matched = this.$route.matched.filter(item => item.meta && item.meta.title) const first = matched[0] - if (!this.isDashboard(first)) { - matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched) - } + // if (!this.isDashboard(first)) { + // matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched) + // } this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) }, diff --git a/src/router/routers.js b/src/router/routers.js index cbebe79..f7e583f 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -35,14 +35,14 @@ export const constantRouterMap = [ { path: '/', component: Layout, - redirect: '/dashboard', + // redirect: '/dashboard', children: [ - { - path: 'dashboard', - component: (resolve) => require(['@/views/home'], resolve), - name: 'Dashboard', - meta: { title: '首页', icon: 'index', affix: true, noCache: true } - } + // { + // path: 'dashboard', + // component: (resolve) => require(['@/views/home'], resolve), + // name: 'Dashboard', + // meta: { title: '首页', icon: 'index', affix: true, noCache: true } + // } ] }, { diff --git a/src/views/login.vue b/src/views/login.vue index 0a52464..17ed2fb 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -56,8 +56,10 @@ export default { codeUrl: '', cookiePass: '', loginForm: { - username: 'admin', - password: '123456', + // username: 'admin', + // password: '123456', + username: '', + password: '', rememberMe: false, code: '', uuid: ''