Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
连远生 committed Sep 4, 2024
1 parent 757536b commit def43f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified public/.DS_Store
Binary file not shown.
6 changes: 5 additions & 1 deletion server/plugins/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ export default defineNitroPlugin((nitroApp) => {
const r1 = await fs.stat(d).then(e => false).catch(e => true)
const r2 = await fs.stat(o).then(e => true).catch(e => false)
if (r1 && r2) {
await fs.symlink(o, d)
try {
await fs.symlink(o, d)
} catch (error) {
console.error(error)
}
}
}
}
Expand Down

0 comments on commit def43f5

Please sign in to comment.