fix:图片地址的问题
This commit is contained in:
parent
5afed2da14
commit
07db42a346
|
@ -75,7 +75,7 @@ router.post('/list', auth, async (req : Request, env : Env) => {
|
||||||
const objs = list.objects
|
const objs = list.objects
|
||||||
const urls = objs.map(it => {
|
const urls = objs.map(it => {
|
||||||
return <ImgItem> {
|
return <ImgItem> {
|
||||||
url: `${BASE_URL}${include}/${it.key}`,
|
url: BASE_URL+`${include}/${it.key}`,
|
||||||
key: it.key,
|
key: it.key,
|
||||||
size: it.size
|
size: it.size
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ router.post('/upload', auth, async (req: Request, env : Env) => {
|
||||||
urls.push({
|
urls.push({
|
||||||
key: object.key,
|
key: object.key,
|
||||||
size: object.size,
|
size: object.size,
|
||||||
url: `${BASE_URL}/${object.key}`,
|
url: BASE_URL+`/${object.key}`,
|
||||||
filename: item.name
|
filename: item.name
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue