PropertyApp/utils/common.js
2021-04-01 18:08:16 +08:00

14 lines
229 B
JavaScript

export function preventClick(fn) {
let that = this;
if (that.onoff) {
that.onoff = false;
fn();
setTimeout(function () {
that.onoff = true;
}, 1500)
} else {
uni.showToast({
title:'操作过于频繁'
})
}
}