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

Function deletePage

src/renderer/src/services/pagesService.ts:142–154  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

140
141// 删除页面
142export async function deletePage(id: string): Promise<void> {
143 const { page, message, tab } = stores
144
145 await page.delete(id)
146 message.evict(id)
147 await useMessageQueueStore.getState().removeRecord(id)
148
149 // 关闭对应的标签页
150 const existingTab = tab.tabs.find((t) => t.dataId === id)
151 if (existingTab) {
152 tab.closeTab(existingTab.id)
153 }
154}
155
156// 批量删除页面
157export async function deletePages(ids: string[]): Promise<void> {

Callers

nothing calls this directly

Calls 4

evictMethod · 0.80
removeRecordMethod · 0.80
closeTabMethod · 0.80
deleteMethod · 0.65

Tested by

no test coverage detected