From 5cfe3ea618644a2d435bafdb3a70a17ab79dd205 Mon Sep 17 00:00:00 2001 From: Junyi Ao <11612514@mail.sustech.edu.cn> Date: Wed, 27 May 2020 10:15:11 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BD=BF=E5=BE=97=E6=96=87=E7=AB=A0=E5=8F=91=E5=B8=83=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=BD=BF=E7=94=A8=E7=9A=84=E6=98=AF=E5=AE=9E=E9=99=85?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=8F=91=E5=B8=83=E7=9A=84=E6=97=B6=E9=97=B4?= =?UTF-8?q?=20(#160)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/post/components/PostSettingDrawer.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/post/components/PostSettingDrawer.vue b/src/views/post/components/PostSettingDrawer.vue index 6bdc205f..5642a172 100644 --- a/src/views/post/components/PostSettingDrawer.vue +++ b/src/views/post/components/PostSettingDrawer.vue @@ -479,6 +479,9 @@ export default { this.createOrUpdatePost() }, handlePublishClick() { + if (this.selectedPost.status === 'DRAFT') { + this.selectedPost.createTime = new Date() + } this.selectedPost.status = 'PUBLISHED' this.createOrUpdatePost() },