Commit 8165adfd authored by Damon's avatar Damon

refactor: 每日一练

parent a5c89327
......@@ -118,6 +118,7 @@
<dailyPop
:count="daily.count"
:visible.sync="daily.visible"
:type="daily.type"
@cancel="dailyCancel"
@submit="dailySubmit"
>
......@@ -155,7 +156,8 @@ export default {
daily: {
status: false,
count: 0,
visible: false
visible: false,
type: 'normal'
},
// 考试成绩弹框
complete: {
......@@ -460,6 +462,7 @@ export default {
// 每日一练达成
dailyComplete() {
this.daily.count = this.daily.count + 1
this.daily.type = this.experience ? 'experience' : 'normal'
this.daily.status = false
this.daily.visible = true
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment