竞赛代码调整
This commit is contained in:
parent
9f1c594a4f
commit
663f25cddc
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user