添加防抖
This commit is contained in:
@@ -76,7 +76,7 @@ export default {
|
||||
});
|
||||
},
|
||||
start_agv() {
|
||||
debounce(() => {
|
||||
uni.$u.throttle(()=>{
|
||||
if (this.start_point == '' || this.end_point == '') {
|
||||
this.$refs.uToast.show({
|
||||
type: 'error',
|
||||
@@ -106,9 +106,10 @@ export default {
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 5000);
|
||||
}, 5000)
|
||||
},
|
||||
stop_agv() {
|
||||
uni.$u.throttle(()=>{
|
||||
if (this.reqCode == '') {
|
||||
this.$refs.uToast.show({
|
||||
type: 'error',
|
||||
@@ -128,6 +129,8 @@ export default {
|
||||
});
|
||||
}
|
||||
});
|
||||
},5000)
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user