mirror of https://github.com/halo-dev/halo-admin
perf: batch add to photos in order of image selection (#631)
parent
205fa09960
commit
e21ef827d9
|
@ -345,7 +345,7 @@ export default {
|
||||||
if (!raw.length) {
|
if (!raw.length) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const photosToStage = raw.map(attachment => {
|
const photosToStage = raw.reverse().map(attachment => {
|
||||||
return {
|
return {
|
||||||
name: attachment.name,
|
name: attachment.name,
|
||||||
url: attachment.path,
|
url: attachment.path,
|
||||||
|
|
Loading…
Reference in New Issue