竞赛代码调整

This commit is contained in:
joylink_cuiweidong 2020-05-25 16:56:00 +08:00
parent 9f1c594a4f
commit 663f25cddc

View File

@ -108,7 +108,8 @@ export default {
{ text: '导入试题', handler: this.handleAdd }
]
},
isLeaving:false
isLeaving:false,
inter:null
};
},
computed: {
@ -162,7 +163,8 @@ export default {
},
afterQuery(data) {
setTimeout(() => {
clearTimeout(this.inter);
this.inter = setTimeout(() => {
if (!this.isLeaving) {
this.refresh();
}