diff --git a/src/views/dashboard/Dashboard.vue b/src/views/dashboard/Dashboard.vue
index b6a99053c..001cc5f2b 100644
--- a/src/views/dashboard/Dashboard.vue
+++ b/src/views/dashboard/Dashboard.vue
@@ -118,8 +118,8 @@
import commentApi from '@/api/comment'
+import optionApi from '@/api/option'
+
import marked from 'marked'
export default {
name: 'RecentCommentTab',
@@ -59,7 +73,9 @@ export default {
data() {
return {
comments: [],
- loading: false
+ loading: false,
+ options: [],
+ keys: ['blog_url']
}
},
computed: {
@@ -72,8 +88,14 @@ export default {
},
created() {
this.loadComments()
+ this.loadOptions()
},
methods: {
+ loadOptions() {
+ optionApi.listAll(this.keys).then(response => {
+ this.options = response.data.data
+ })
+ },
loadComments() {
this.loading = true
commentApi.latestComment(this.type, 5, 'PUBLISHED').then(response => {
diff --git a/src/views/sheet/SheetList.vue b/src/views/sheet/SheetList.vue
index e15dda938..f868d58d4 100644
--- a/src/views/sheet/SheetList.vue
+++ b/src/views/sheet/SheetList.vue
@@ -43,19 +43,19 @@
:to="{name:'LinkList'}"
v-if="record.id==1"
>
- 编辑
+ 管理