Authored by 陈峰

commit

export default [{
path: '/article/:id',
name: 'article',
alias: '/article/:id',
component: () => import(/* webpackChunkName: "article" */ './article'),
meta: {
keepAlive: true
}
}, {
path: '/topic/:labelId',
alias: '/topic/:labelId',
name: 'topic',
component: () => import(/* webpackChunkName: "article" */ './topic'),
meta: {
... ... @@ -14,6 +16,7 @@ export default [{
}
}, {
path: '/article/:articleId/comment',
alias: '/article/:articleId/comment',
name: 'article.comment',
component: () => import(/* webpackChunkName: "article" */ './article-comment'),
}];
... ...
export default [{
path: '/author/:type/:id',
alias: '/author/:type/:id',
name: 'author',
component: () => import(/* webpackChunkName: "author" */ './author')
},
{
path: '/author/mine',
alias: '/author/mine',
name: 'author.mine',
component: () => import(/* webpackChunkName: "author" */ './author')
}];
... ...
... ... @@ -48,6 +48,7 @@ export default function() {
});
state.direction = 'forword';
}
console.log(state.direction)
state.homePage = state.historys.length <= 1;
},
[Types.SET_NEED_LOGIN](state, {needLogin}) {
... ...