mirror of https://github.com/halo-dev/halo
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
parent
e16fd7565d
commit
1e6992eef1
|
@ -107,10 +107,6 @@ const handleSaveClick = () => {
|
|||
};
|
||||
|
||||
const handlePublishClick = () => {
|
||||
if (!props.onlyEmit) {
|
||||
handlePublish();
|
||||
}
|
||||
|
||||
submitType.value = "publish";
|
||||
|
||||
nextTick(() => {
|
||||
|
|
Loading…
Reference in New Issue