防抖
This commit is contained in:
@@ -76,7 +76,6 @@ export default {
|
||||
methods: {
|
||||
submit() {
|
||||
if(this.flag) return
|
||||
|
||||
this.$refs.uForm.validate((valid) => {
|
||||
if (valid) {
|
||||
|
||||
@@ -112,15 +111,15 @@ export default {
|
||||
lng: this.forms.lng,
|
||||
id: this.id,
|
||||
}).then((res) => {
|
||||
if (res?.code == 0) {
|
||||
uni.navigateBack()
|
||||
this.flag = false
|
||||
|
||||
if (res?.code == 0) {
|
||||
this.$u.toast('提交成功')
|
||||
uni.$emit('updateList')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 600)
|
||||
}
|
||||
}).catch((err) => {
|
||||
this.flag = false
|
||||
this.$u.toast('提交失败')
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user