Browse Source

保存按钮存在延迟

master_hella_20240701
yufei0306 5 months ago
parent
commit
5890359726
  1. 10
      src/components/BasicForm/src/BasicForm.vue

10
src/components/BasicForm/src/BasicForm.vue

@ -566,9 +566,15 @@ const buttonBaseClick = (val) => {
} }
// //
else if (val == 'save') { else if (val == 'save') {
debounce(() => { let timer = null
if(!timer){
submitForm() submitForm()
}, 2000)() timer = setTimeout(()=>{
if(timer){
clearTimeout(timer)
}
},2000)
}
} }
// //
else if (val == 'close') { else if (val == 'close') {

Loading…
Cancel
Save