Skip to content

Commit

Permalink
Update api.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm authored Sep 30, 2024
1 parent bb2649e commit 7045927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/pages/docs/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ interface PushyOptions {
| null; // 不自动下载和应用更新,如需自定义热更界面请选择此项

// 是否在热更重启后自动标记为成功,默认为true
// 一般情况下不建议手动标记
autoMarkSuccess?: boolean;

// 是否在若干ms后自动清除最后的报错,默认为不清除
Expand Down Expand Up @@ -270,7 +271,7 @@ interface PushyContext {

#### function markSuccess()

手动调用此函数作为更新成功的标记(否则下次启动会默认失败自动回滚)。默认情况下不需调用此函数,除非设置`autoMarkSuccess``false`
**一般情况下请勿手动调用此函数**。 调用此函数作为更新成功的标记(否则下次启动会默认失败自动回滚)。

---

Expand Down

0 comments on commit 7045927

Please sign in to comment.