Skip to content

Commit

Permalink
fix: 修复常规发布参数缺失问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezhangcs committed Jul 31, 2023
1 parent 1b5a66a commit e1afcd9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/invoke/widgetInvoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ export class WidgetInvoke {
}

public async showPublisherPublishDialog() {
await this.showPage("/")
let pageId: string | undefined = PageUtil.getPageId()
if (pageId == "") {
pageId = undefined
}
this.logger.debug("pageId=>", pageId)
if (StrUtil.isEmptyString(pageId)) {
showMessage(`文档ID不能为空,注意:您必须打开当前文档才能进行发布操作`, 2000, "error")
return
}
await this.showPage(`/?id=${pageId}`)
}

public async showPublisherQuickPublishDialog(key: string) {
Expand Down

0 comments on commit e1afcd9

Please sign in to comment.