* @description Set outputpath if outputpathLock is false or outputpath is invalid
(path: string)
| 104 | * @description Set outputpath if outputpathLock is false or outputpath is invalid |
| 105 | */ |
| 106 | static setoutputpath(path: string): void { |
| 107 | const { outputpath, outputpathLock } = storeToRefs(useIOPathStore()) |
| 108 | // if outputpathLock is false or outputpath is empty, set outputpath |
| 109 | if (path !== '' && (outputpathLock.value === false || !PathFormat.checkPath(outputpath.value))) { |
| 110 | outputpath.value = path |
| 111 | } |
| 112 | else { |
| 113 | console.log('outputpath Lock!') |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * @description get outputpath |
no test coverage detected