From 1e6992eef18a220e46393a5827168e609e92fb97 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 29 Mar 2023 12:56:13 +0800 Subject: [PATCH] fix: post publishing api is requested twice (#3619) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug /area console /milestone 2.4.x #### What this PR does / why we need it: 修复从文章列表打开设置之后保存会调用两次发布接口的问题。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/3615 #### Special notes for your reviewer: 测试从文章列表打开设置后保存是否会调用多次发布接口即可。 #### Does this PR introduce a user-facing change? ```release-note 修复 Console 端发布文章可能调用多次接口的问题。 ``` --- .../modules/contents/posts/components/PostSettingModal.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/console/src/modules/contents/posts/components/PostSettingModal.vue b/console/src/modules/contents/posts/components/PostSettingModal.vue index 4d19585fa..07ef8aab3 100644 --- a/console/src/modules/contents/posts/components/PostSettingModal.vue +++ b/console/src/modules/contents/posts/components/PostSettingModal.vue @@ -107,10 +107,6 @@ const handleSaveClick = () => { }; const handlePublishClick = () => { - if (!props.onlyEmit) { - handlePublish(); - } - submitType.value = "publish"; nextTick(() => {