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
499127c7
Commit
499127c7
authored
Jul 28, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 【ID1001354】【小程序-题库-错题记录】:错题移出后总题数未减少,左侧的当前题目序号应不变
parent
d555a303
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
answer.vue
src/pages/learn/answer.vue
+3
-3
No files found.
src/pages/learn/answer.vue
View file @
499127c7
...
@@ -273,7 +273,7 @@ export default {
...
@@ -273,7 +273,7 @@ export default {
},
},
methods
:
{
methods
:
{
// 初始化数据
// 初始化数据
init
()
{
init
(
i
)
{
const
params
=
{
const
params
=
{
questionWarehouseId
:
this
.
questionWarehouseId
,
questionWarehouseId
:
this
.
questionWarehouseId
,
recordId
:
this
.
recordId
,
recordId
:
this
.
recordId
,
...
@@ -302,7 +302,7 @@ export default {
...
@@ -302,7 +302,7 @@ export default {
// 上次答到了第几题
// 上次答到了第几题
let
index
=
this
.
source
===
1
?
(
this
.
lastIndex
[
this
.
questionWarehouseId
]
||
0
)
:
0
let
index
=
this
.
source
===
1
?
(
this
.
lastIndex
[
this
.
questionWarehouseId
]
||
0
)
:
0
this
.
refresh
(
index
)
this
.
refresh
(
i
?
i
:
i
ndex
)
}
}
})
})
},
},
...
@@ -582,7 +582,7 @@ export default {
...
@@ -582,7 +582,7 @@ export default {
remove
()
{
remove
()
{
const
info
=
this
.
list
.
find
(
v
=>
v
.
index
===
this
.
currentIndex
)
const
info
=
this
.
list
.
find
(
v
=>
v
.
index
===
this
.
currentIndex
)
this
.
$u
.
api
.
removeError
({
questionId
:
info
.
id
}).
then
(
res
=>
{
this
.
$u
.
api
.
removeError
({
questionId
:
info
.
id
}).
then
(
res
=>
{
if
(
res
)
this
.
current
=
this
.
currentIndex
+
1
if
(
res
)
this
.
init
(
this
.
currentIndex
)
})
})
},
},
// 以下方法用于初始化数据
// 以下方法用于初始化数据
...
...
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