fix: eslint检测问题修复

Former-commit-id: 99d59634e81f4917717a908ded6d1cd331592347
This commit is contained in:
haoxr
2023-01-14 18:38:32 +08:00
parent 9ebccf0f45
commit 3a24f39649
4 changed files with 3 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ import { Directive } from 'vue';
*/
export const deBounce: Directive = {
mounted(el: HTMLElement) {
el.addEventListener('click', e => {
el.addEventListener('click', () => {
el.classList.add('is-disabled');
setTimeout(() => {
el.classList.remove('is-disabled');