|
@@ -24,6 +24,7 @@
|
|
|
v-model="content"
|
|
v-model="content"
|
|
|
>
|
|
>
|
|
|
</tinymce>
|
|
</tinymce>
|
|
|
|
|
+ <el-input type="textarea" v-model="description" placeholder="请填写文章简介"></el-input>
|
|
|
</el-main>
|
|
</el-main>
|
|
|
<el-footer>
|
|
<el-footer>
|
|
|
<el-row>
|
|
<el-row>
|
|
@@ -51,7 +52,8 @@ export default {
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
title: '',
|
|
title: '',
|
|
|
- content: ''
|
|
|
|
|
|
|
+ content: '',
|
|
|
|
|
+ description: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -59,7 +61,8 @@ export default {
|
|
|
if (this.title !== '') {
|
|
if (this.title !== '') {
|
|
|
this.$axios.post('/articles', {
|
|
this.$axios.post('/articles', {
|
|
|
title: this.title,
|
|
title: this.title,
|
|
|
- content: this.content
|
|
|
|
|
|
|
+ content: this.content,
|
|
|
|
|
+ description: this.description
|
|
|
}).then(r => {
|
|
}).then(r => {
|
|
|
console.log(r)
|
|
console.log(r)
|
|
|
})
|
|
})
|