diff --git a/src/views/post/components/PostSettingDrawer.vue b/src/views/post/components/PostSettingDrawer.vue index f9588554..2fe04750 100644 --- a/src/views/post/components/PostSettingDrawer.vue +++ b/src/views/post/components/PostSettingDrawer.vue @@ -292,24 +292,15 @@ loadedText="保存成功" erroredText="保存失败" > - - - + @@ -511,10 +502,7 @@ export default { this.selectedPost.status = 'DRAFT' this.createOrUpdatePost() }, - handlePublishClick(refreshCreateTime = false) { - if (refreshCreateTime) { - this.selectedPost.createTime = new Date() - } + handlePublishClick() { this.selectedPost.status = 'PUBLISHED' this.createOrUpdatePost() }, diff --git a/src/views/sheet/components/SheetSettingDrawer.vue b/src/views/sheet/components/SheetSettingDrawer.vue index 3bfe5246..40843798 100644 --- a/src/views/sheet/components/SheetSettingDrawer.vue +++ b/src/views/sheet/components/SheetSettingDrawer.vue @@ -208,25 +208,15 @@ loadedText="保存成功" erroredText="保存失败" > - - - - + @@ -352,10 +342,7 @@ export default { this.selectedSheet.thumbnail = encodeURI(data.path) this.thumbDrawerVisible = false }, - handlePublishClick(refreshCreateTime = false) { - if (refreshCreateTime) { - this.selectedSheet.createTime = new Date() - } + handlePublishClick() { this.selectedSheet.status = 'PUBLISHED' this.createOrUpdateSheet() },