api
This commit is contained in:
+1
-1
@@ -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: '上传成功',
|
||||
|
||||
Reference in New Issue
Block a user