API Reference > @next-core/brick-types > ExtendedHistory
ExtendedHistory interface
扩展的系统会话对象。
Signature:
export interface ExtendedHistory
Properties
| Property | Type | Description |
|---|---|---|
| push | History<PluginHistoryState>["push"] | 推入一条记录。 |
| pushAnchor | UpdateAnchorFunction | 设置指定的 anchor (URL hash)地址,此方法默认不会触发页面重新渲染。 往浏览器会话历史栈中推入一条新记录。 |
| pushQuery | UpdateQueryFunction | 更新指定的 query 参数,会保留当前其它 query 参数,往浏览器会话历史栈中推入一条新记录。 |
| reload | () => void | 重载当前会话,即触发页面重新渲染。与 location.reload() 不同,它不会触发浏览器页面的重载。 |
| replace | History<PluginHistoryState>["replace"] | 替换一条记录。 |
| replaceQuery | UpdateQueryFunction | 更新指定的 query 参数,会保留当前其它 query 参数,替换浏览器会话历史栈中最新的一条记录。 |
| unblock | () => void | 取消之前设置的阻止页面离开信息的设置。 |