addImagesToPreview() {
this.previewImgs = this.car.carImgs.map((previewImg) => ({
link: URL.createObjectURL(previewImg),
name: previewImg.name,
}));
},
dragChange() {
const previewImgsLinks = this.previewImgs.map(({ name }) => name);
this.car.carImgs = this.car.carImgs.sort(
(a, b) =>
previewImgsLinks.indexOf(a.name) - previewImgsLinks.indexOf(b.name)
);
},