This commit is contained in:
董海洋
2026-05-24 18:25:01 +08:00
parent 5674ef016e
commit ab0b7b4644
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ router.post('/', upload.single('file'), async (ctx) => {
}
// 存储相对路径,前端使用时拼接域名
const fileUrl = `/img/${ctx.file.filename}`
const fileUrl = `/uploads/${ctx.file.filename}`
ctx.body = {
code: 200,
message: '上传成功',