UNPKG

etc-hooks

Version:
13 lines (12 loc) 306 B
export interface Options { restorePrevTitle?: boolean; } /** * @param {string} title * @param {Object} options * @description * 1. 实现更新 title * 2. 组件销毁时,回复本身的页面标题 */ declare function useTitle(title: string, options?: Options): void; export default useTitle;