@@ -132,39 +114,36 @@
- {{ title }}
-
+ {{ title }}
+
+
-
+
-
- 发布
-
-
+ 发布
+
-
-
-
-
-
-
- 更多选项
-
+
+
+
+
+
+
+
+ 更多选项
+
+
+
@@ -175,21 +154,11 @@
v-model="selectCommentVisible"
>
-
- 回复
-
+ 回复
-
+
@@ -203,23 +172,16 @@
destroyOnClose
@close="()=>this.commentVisiable = false"
>
-
+
-
+
{{ journal.content }}
{{ journal.createTime | moment }}
-
+
{
@@ -360,10 +347,10 @@ export default {
this.handleCommentShow(this.journal)
})
},
- createOrUpdateJournal() {
- // 给属性填充数据
- this.journal.photos = this.journalPhotos
-
+ createOrUpdateJournal() {
+ // 给属性填充数据
+ this.journal.photos = this.journalPhotos
+
if (this.journal.id) {
journalApi.update(this.journal.id, this.journal).then(response => {
this.$message.success('更新成功!')
@@ -373,6 +360,7 @@ export default {
journalApi.create(this.journal).then(response => {
this.$message.success('发表成功!')
this.loadJournals()
+ this.photoList = []
})
}
this.visible = false
@@ -389,11 +377,17 @@ export default {
}
}
}
-
-