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