fix: post publishing api is requested twice (#3619)

#### 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 端发布文章可能调用多次接口的问题。
```
pull/3623/head
Ryan Wang 2023-03-29 12:56:13 +08:00 committed by GitHub
parent e16fd7565d
commit 1e6992eef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -107,10 +107,6 @@ const handleSaveClick = () => {
};
const handlePublishClick = () => {
if (!props.onlyEmit) {
handlePublish();
}
submitType.value = "publish";
nextTick(() => {