task#13728, 每次回答完问题之后需要自动刷新
This commit is contained in:
@ -65,6 +65,10 @@ export default {
|
||||
this.getList();
|
||||
|
||||
},
|
||||
created() {
|
||||
// 每次回答完问题之后返回需重新加结果
|
||||
this.onRefresh();
|
||||
},
|
||||
methods:{
|
||||
onRefresh() {
|
||||
this.getList()
|
||||
@ -89,6 +93,7 @@ export default {
|
||||
}
|
||||
if(res.data.length === 0){
|
||||
this.showEmpty = true
|
||||
|
||||
}else {
|
||||
this.showEmpty = false
|
||||
}
|
||||
|
Reference in New Issue
Block a user