This commit is contained in:
fan 2020-05-25 17:08:07 +08:00
commit b5b228b1a0

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();
}