Skip to main content
Version: 2.x

API Reference > @next-core/brick-types > ExtendedHistory

ExtendedHistory interface

扩展的系统会话对象。

Signature:

export interface ExtendedHistory

Properties

PropertyTypeDescription
pushHistory<PluginHistoryState>["push"]推入一条记录。
pushAnchorUpdateAnchorFunction设置指定的 anchor (URL hash)地址,此方法默认不会触发页面重新渲染。 往浏览器会话历史栈中推入一条新记录。
pushQueryUpdateQueryFunction更新指定的 query 参数,会保留当前其它 query 参数,往浏览器会话历史栈中推入一条新记录。
reload() => void重载当前会话,即触发页面重新渲染。与 location.reload() 不同,它不会触发浏览器页面的重载。
replaceHistory<PluginHistoryState>["replace"]替换一条记录。
replaceQueryUpdateQueryFunction更新指定的 query 参数,会保留当前其它 query 参数,替换浏览器会话历史栈中最新的一条记录。
unblock() => void取消之前设置的阻止页面离开信息的设置。