diff --git a/src/views/post/PostEdit.vue b/src/views/post/PostEdit.vue
index 1bf5fafe..8c249a61 100644
--- a/src/views/post/PostEdit.vue
+++ b/src/views/post/PostEdit.vue
@@ -1,14 +1,7 @@
-
+
-
+
标签
@@ -104,7 +78,7 @@
-
+
-
+
-
+
-
保存草稿
-
{{ publishText }}
+
保存草稿
+
{{ publishText }}
-
+
-
- 发布
- 附件库
+
+ 发布
+ 附件库
@@ -167,6 +124,7 @@ import tagApi from '@/api/tag'
import categoryApi from '@/api/category'
import postApi from '@/api/post'
import AttachmentDrawer from '../attachment/components/AttachmentDrawer'
+import AttachmentSelectDrawer from '../attachment/components/AttachmentSelectDrawer'
const toolbars = {
bold: true, // 粗体
@@ -194,7 +152,8 @@ export default {
mavonEditor,
CategoryTree,
FooterToolBar,
- AttachmentDrawer
+ AttachmentDrawer,
+ AttachmentSelectDrawer
},
mixins: [mixin, mixinDevice],
data() {
@@ -296,6 +255,9 @@ export default {
},
onChildClose() {
this.childDrawerVisible = false
+ },
+ selectPostThumb(data) {
+ this.postToStage.thumbnail = data.path
}
}
}
diff --git a/src/views/user/Profile.vue b/src/views/user/Profile.vue
index 7b22392b..ebe2e7e0 100644
--- a/src/views/user/Profile.vue
+++ b/src/views/user/Profile.vue
@@ -9,7 +9,10 @@
prompt text
-
![]()
+
{{ user.nickname }}