* @description Delete an inputpath from inputpathMap by id * @param id inputpath id
(id: string)
| 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 即可 |