|
|
@@ -176,7 +176,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="文章类型">
|
|
|
<el-select
|
|
|
- v-model="addForm.type"
|
|
|
+ v-model="addForm.postType"
|
|
|
style="padding-right: 1px"
|
|
|
>
|
|
|
<el-option label="文章" value="1" />
|
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
categoryId: '',
|
|
|
tags: [],
|
|
|
published: '1',
|
|
|
- type: '1'
|
|
|
+ postType: '1'
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -319,7 +319,7 @@ export default {
|
|
|
formData.append('categoryId', this.addForm.categoryId)
|
|
|
formData.append('tags', this.addForm.tags)
|
|
|
formData.append('published', this.addForm.published)
|
|
|
- formData.append('type', this.addForm.published)
|
|
|
+ formData.append('postType', this.addForm.postType)
|
|
|
editBlogPost(formData).then(resp => {
|
|
|
this.addDialog = false
|
|
|
this.$message.info(resp.msg)
|