opt: 异常日志,流量限制,创建任务优化

This commit is contained in:
yanps
2024-02-28 16:35:50 +08:00
parent c010166c28
commit ae3b25f35a
13 changed files with 154 additions and 96 deletions

View File

@@ -759,7 +759,11 @@ export default {
this.dialogVisible = false
},
saveBtn() {
// 禁用按钮
this.isDisabled = true
crudTask.add(this.form).then(res => {
// 请求完成后启用按钮
this.isDisabled = false
this.crud.toQuery()
this.formDia = false
this.isDisabled = true
@@ -767,6 +771,10 @@ export default {
this.extension = [{
name: '',
value: '' }]
// 设置定时器,等待一定时间后再次允许请求
setTimeout(() => {
this.isDisabled = false // 可根据具体需求进行调整
}, 1000) // 5000 毫秒,即 5 秒钟
},
openDialog() {
this.dialogVisible = true