MCPcopy Create free account
hub / github.com/experdot/pointer / updatePage

Function updatePage

src/renderer/src/services/pagesService.ts:128–139  ·  view source on GitHub ↗
(id: string, updates: Partial<PageRecord>)

Source from the content-addressed store, hash-verified

126
127// 更新页面
128export async function updatePage(id: string, updates: Partial<PageRecord>): Promise<void> {
129 await stores.page.update(id, updates)
130
131 // 同步更新标签页标题
132 if (updates.name) {
133 const { tab } = stores
134 const existingTab = tab.tabs.find((t) => t.dataId === id)
135 if (existingTab) {
136 tab.updateTabTitle(existingTab.id, updates.name)
137 }
138 }
139}
140
141// 删除页面
142export async function deletePage(id: string): Promise<void> {

Callers 3

HeaderFunction · 0.90
ChatEditorFunction · 0.90
ExplorerFunction · 0.85

Calls 2

updateTabTitleMethod · 0.80
updateMethod · 0.65

Tested by

no test coverage detected