diff --git a/src/views/comment/CommentList.vue b/src/views/comment/CommentList.vue
index 598f6720..e16e3f33 100644
--- a/src/views/comment/CommentList.vue
+++ b/src/views/comment/CommentList.vue
@@ -121,7 +121,7 @@
{{ post.title }}
import { PageView } from '@/layouts'
import commentApi from '@/api/comment'
+import optionApi from '@/api/option'
import marked from 'marked'
const columns = [
@@ -302,7 +303,9 @@ export default {
selectComment: {},
replyComment: {},
commentsLoading: false,
- commentStatus: commentApi.commentStatus
+ commentStatus: commentApi.commentStatus,
+ options: [],
+ keys: ['blog_url']
}
},
computed: {
@@ -316,6 +319,7 @@ export default {
},
created() {
this.loadComments()
+ this.loadOptions()
},
methods: {
loadComments(isSearch) {
@@ -333,6 +337,11 @@ export default {
this.commentsLoading = false
})
},
+ loadOptions() {
+ optionApi.listAll(this.keys).then(response => {
+ this.options = response.data.data
+ })
+ },
handleEditComment(id) {
this.$message.success('编辑')
},
diff --git a/src/views/sheet/SheetList.vue b/src/views/sheet/SheetList.vue
index 859dc0d2..e15dda93 100644
--- a/src/views/sheet/SheetList.vue
+++ b/src/views/sheet/SheetList.vue
@@ -10,7 +10,7 @@
-
@@ -27,14 +27,13 @@
操作:{{ item.url }}
-
+ -->
编辑
- 查看
+ 查看
@@ -144,6 +140,7 @@