MCPcopy
hub / github.com/EutropicAI/Final2x / delete

Method delete

src/renderer/src/utils/IOPath.ts:22–25  ·  view source on GitHub ↗

* @description Delete an inputpath from inputpathMap by id * @param id inputpath id

(id: string)

Source from the content-addressed store, hash-verified

20 * @param id inputpath id
21 */
22 static delete(id: string): void {
23 const { inputpathMap } = storeToRefs(useIOPathStore())
24 inputpathMap.value.delete(id)
25 }
26
27 /**
28 * @description 检查 id 是否存在,因为 naive-ui 生成的 id 长度较短,所以这里只检查 inputpathMap 即可

Callers 1

IOPath.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected