* @description Add a new inputpath to inputpathMap * @param id inputpath id * @param path inputpath
(id: string, path: string)
| 9 | * @param path inputpath |
| 10 | */ |
| 11 | static add(id: string, path: string): void { |
| 12 | const { inputpathMap } = storeToRefs(useIOPathStore()) |
| 13 | if (path !== '') { |
| 14 | inputpathMap.value.set(id, path) |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * @description Delete an inputpath from inputpathMap by id |