DEBUG
This commit is contained in:
@@ -8,7 +8,7 @@ export default defineEventHandler(async event => {
|
||||
if (!fs.existsSync('outputs')) {
|
||||
// 打印当前执行目录
|
||||
console.log('cwd:', process.cwd())
|
||||
path = `../../outputs/txt2img-samples/samples/${event.context.params.id}`
|
||||
path = `../outputs/txt2img-samples/samples/${event.context.params.id}`
|
||||
}
|
||||
console.log('path:', path)
|
||||
return fs.readFileSync(path)
|
||||
|
Reference in New Issue
Block a user