diff --git a/src/api/theme.js b/src/api/theme.js
index cfd294a5..d97b6715 100644
--- a/src/api/theme.js
+++ b/src/api/theme.js
@@ -134,4 +134,4 @@ themeApi.exists = template => {
})
}
-export default themeApi
\ No newline at end of file
+export default themeApi
diff --git a/src/views/comment/components/CommentTab.vue b/src/views/comment/components/CommentTab.vue
index cceb53eb..b8467b10 100644
--- a/src/views/comment/components/CommentTab.vue
+++ b/src/views/comment/components/CommentTab.vue
@@ -436,38 +436,44 @@ export default {
handlePublishMore() {
if (this.selectedRowKeys.length <= 0) {
this.$message.success('请至少选择一项!')
+ return
}
for (let index = 0; index < this.selectedRowKeys.length; index++) {
const element = this.selectedRowKeys[index]
commentApi.updateStatus(this.type, element, 'PUBLISHED').then(response => {
this.$log.debug(`commentId: ${element}, status: PUBLISHED`)
+ this.selectedRowKeys = []
+ this.loadComments()
})
}
- this.loadComments()
},
handleRecycleMore() {
if (this.selectedRowKeys.length <= 0) {
this.$message.success('请至少选择一项!')
+ return
}
for (let index = 0; index < this.selectedRowKeys.length; index++) {
const element = this.selectedRowKeys[index]
commentApi.updateStatus(this.type, element, 'RECYCLE').then(response => {
this.$log.debug(`commentId: ${element}, status: RECYCLE`)
+ this.selectedRowKeys = []
+ this.loadComments()
})
}
- this.loadComments()
},
handleDeleteMore() {
if (this.selectedRowKeys.length <= 0) {
this.$message.success('请至少选择一项!')
+ return
}
for (let index = 0; index < this.selectedRowKeys.length; index++) {
const element = this.selectedRowKeys[index]
commentApi.delete(this.type, element).then(response => {
this.$log.debug(`delete: ${element}`)
+ this.selectedRowKeys = []
+ this.loadComments()
})
}
- this.loadComments()
},
onReplyClose() {
this.replyComment = {}
diff --git a/src/views/post/PostList.vue b/src/views/post/PostList.vue
index b4149832..c838e910 100644
--- a/src/views/post/PostList.vue
+++ b/src/views/post/PostList.vue
@@ -82,7 +82,7 @@
>
发布
@@ -229,7 +229,47 @@