Browse Source

保存按钮存在延迟

master_hella_20240701
yufei0306 3 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') {
debounce(() => {
let timer = null
if(!timer){
submitForm()
}, 2000)()
timer = setTimeout(()=>{
if(timer){
clearTimeout(timer)
}
},2000)
}
}
//
else if (val == 'close') {

Loading…
Cancel
Save