|
@@ -164,11 +164,13 @@ const saveStore = genUseLoading(async () => {
|
|
|
newData.url = await uploadImage(blob);
|
|
|
const origin = isRoad.value ? roadPhotos.value : accidentPhotos.value;
|
|
|
const index = origin.indexOf(data.value);
|
|
|
+ console.log(origin, data.value, index);
|
|
|
if (~index) {
|
|
|
origin[index] = newData;
|
|
|
} else {
|
|
|
origin.push(newData);
|
|
|
}
|
|
|
+ data.value = newData;
|
|
|
});
|
|
|
|
|
|
const saveHandler = async () => {
|