task#13728, 每次回答完问题之后需要自动刷新

This commit is contained in:
2024-05-13 17:35:03 +08:00
parent ae4c177204
commit 87c2e0301a

View File

@ -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
} }