Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
4ce3aa8d
Commit
4ce3aa8d
authored
Jul 30, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement: 首页未登录跳转到登录页面
parent
886e863c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
index.vue
src/pages/index/index.vue
+18
-2
No files found.
src/pages/index/index.vue
View file @
4ce3aa8d
...
...
@@ -397,6 +397,12 @@ export default {
}
},
handleClickLeftTop
()
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
this
.
$u
.
route
({
url
:
'pages/learn/selectCategory'
,
})
...
...
@@ -413,6 +419,12 @@ export default {
})
},
handleClickItem
(
key
)
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
if
(
this
.
info
.
id
)
{
// 跳转到学练记录
this
.
$u
.
route
({
...
...
@@ -429,8 +441,6 @@ export default {
}
},
handleClickExperience
()
{
// this.selected.state = false
// this.$u.vuex('experience', false)
// 体验
// 1.顺序答题 2.随机练习 3.模拟考试 4.收藏答题 5.错题答题 6.专项练习-单选 7.专项练习-多选 8.专项练习-判断 9.专项练习-答案是
this
.
$u
.
route
({
...
...
@@ -529,6 +539,12 @@ export default {
this
.
finishCount
=
this
.
answerCount
[
this
.
questionWarehouseId
]
||
0
},
handleSelectTip
()
{
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
,
})
return
}
this
.
$u
.
route
({
url
:
'pages/learn/detail'
,
params
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment