Commit a4702b49 authored by Davve's avatar Davve

修改错误

parent c280ab0d
......@@ -260,7 +260,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">取消</el-button>
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()">确认</el-button>
<el-button type="primary" @click="dialogStatus==='create'?createData():updateData()" :disabled="this.is_click">确认</el-button>
</div>
</el-dialog>
......@@ -325,7 +325,7 @@
return {
postForm: Object.assign({}, defaultForm),
loading: false,
is_click: false,
user: '',
star: '',
group: '',
......@@ -713,6 +713,7 @@
createData() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.is_click = true
this.temp.topic_id = this.postForm.id
createRemark(this.temp).then((response) => {
this.list.push(response.data.data.data)
......@@ -722,6 +723,7 @@
type: 'success',
duration: 2000
})
this.is_click = false
})
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment