<el-button type="primary" @click="debounceClick">{{ $t('i18n.sureBtn') }}</el-button>
private debounceClick() {
// 清除之前的计时器
clearTimeout(this.timer)
// 设置新的计时器,延迟执行函数
this.timer = setTimeout(() => {
this.onSureChoose()
}, 500)
}
private async onSureChoose() {
this.onSure(this.tableData[this.tableSelection])
this.dialogVisible = false
}