Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
6 years ago
Commit
967048292301dfa6482d539c9943aa25de350553
1 parent
3fd4d870
commit
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
apps/pages/article/index.js
apps/pages/userpage/index.js
apps/store/yoho/index.js
apps/pages/article/index.js
View file @
9670482
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'
),
}];
...
...
apps/pages/userpage/index.js
View file @
9670482
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'
)
}];
...
...
apps/store/yoho/index.js
View file @
9670482
...
...
@@ -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
})
{
...
...
Please
register
or
login
to post a comment