fix url
This commit is contained in:
parent
43a2c3ea7c
commit
40c6ec0877
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ const allImages = () => {
|
||||||
.map(f => ({
|
.map(f => ({
|
||||||
filename: f,
|
filename: f,
|
||||||
file: `${UPLOAD_DIR}/${f}`,
|
file: `${UPLOAD_DIR}/${f}`,
|
||||||
url: `${UPLOAD_URL}/${f}`,
|
url: `${UPLOAD_URL}/${encodeURIComponent(f)}`,
|
||||||
}))
|
}))
|
||||||
.sort((a, b) => {
|
.sort((a, b) => {
|
||||||
return fs.statSync(b.file).mtime.getTime() -
|
return fs.statSync(b.file).mtime.getTime() -
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue