diff --git a/src/component/Nav/Fan.vue b/src/component/Nav/Fan.vue index 34606322f7c2cc49d4066b48e62ea428551b98a6..5499d9686126c1b3c2fec160f8fb38cd5ba8db7a 100644 --- a/src/component/Nav/Fan.vue +++ b/src/component/Nav/Fan.vue @@ -7,21 +7,21 @@
- + - {{ item.username }} + {{ item.alias }} + {{ + '@' + item.username + }}
diff --git a/src/component/Nav/Follow.vue b/src/component/Nav/Follow.vue index 388905086d35b8c3950b447a33506bf3f8bcea73..9a6d5672537fe996087ccfb7c9c4e9c0dc147189 100644 --- a/src/component/Nav/Follow.vue +++ b/src/component/Nav/Follow.vue @@ -15,14 +15,17 @@ - {{ item.username }} + {{ item.alias }} + {{ + '@' + item.username + }}
diff --git a/src/util/toolbar.js b/src/util/toolbar.js new file mode 100644 index 0000000000000000000000000000000000000000..6c62e13beb7a63a81d4d70266895de746fbd359e --- /dev/null +++ b/src/util/toolbar.js @@ -0,0 +1,31 @@ +export default [ + 'emoji', + 'headings', + 'bold', + 'italic', + 'strike', + 'link', + '|', + 'list', + 'ordered-list', + 'check', + 'outdent', + 'indent', + '|', + 'quote', + 'line', + 'code', + 'inline-code', + 'insert-before', + 'insert-after', + '|', + // "upload", + // "record", + 'table', + '|', + 'undo', + 'redo', + '|', + 'fullscreen', + 'edit-mode', +] diff --git a/src/view/post/Create.vue b/src/view/post/Create.vue index 2dbef2270d2e13b92b96def5a2a17bd021776827..554375adf573d4ef94155cd8a31e9517b216f694 100644 --- a/src/view/post/Create.vue +++ b/src/view/post/Create.vue @@ -46,6 +46,7 @@ import { createPost } from "@/api/post"; import Vditor from "vditor"; import "vditor/dist/index.css"; +import toolbar from "@/util/toolbar" export default { name: "TopicPost", @@ -104,6 +105,7 @@ export default { style: "monokai", } }, + toolbar }); }, methods: { diff --git a/src/view/post/Edit.vue b/src/view/post/Edit.vue index c0e9fc6beb8b106379e0285abad38a8d713c2eff..3e02bf41eb630f338f6e769a27b242826f0801c3 100644 --- a/src/view/post/Edit.vue +++ b/src/view/post/Edit.vue @@ -44,6 +44,7 @@ import { getPost, updatePost } from "@/api/post"; import Vditor from "vditor"; import "vditor/dist/index.css"; +import toolbar from "@/util/toolbar" export default { name: "TopicEdit", @@ -87,6 +88,7 @@ export default { style: "monokai", }, }, + toolbar, after: () => { this.contentEditor.setValue(content); },