This commit is contained in:
yanran200730
2022-01-06 17:38:44 +08:00
parent 3e51259802
commit c3eb1db619

View File

@@ -75,7 +75,7 @@
</template>
<template #footer>
<el-button @click="cancel">取消</el-button>
<el-button type="primary" @click="confirm">提交</el-button>
<el-button type="primary" @click="confirm" :loading="isLoading">提交</el-button>
</template>
</ai-detail>
</template>
@@ -107,6 +107,7 @@
anonymity: '1',
images: []
},
isLoading: false,
keys: ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
id: ''
}
@@ -182,7 +183,7 @@
}
}
}
this.isLoading = true
this.instance.post(`/app/appvillagediscuss/addOrUpdate`, {
...this.form,
createUserId: this.user.info.id,
@@ -192,9 +193,12 @@
if (res.code == 0) {
this.$message.success('提交成功')
setTimeout(() => {
this.isLoading = false
this.cancel(true)
}, 600)
}, 300)
}
}).catch(() => {
this.isLoading = false
})
}
})