test
This commit is contained in:
parent
4b6540dfcd
commit
965c015c2c
22 changed files with 396 additions and 299 deletions
|
|
@ -12,7 +12,7 @@
|
|||
>
|
||||
Ajouter une ou plusieurs images
|
||||
</button>
|
||||
<template v-for="image in page.images" :key="image.uri">
|
||||
<template v-for="image in page.moodboard" :key="image.uri">
|
||||
<figure
|
||||
v-if="
|
||||
selectedTags.length === 0 ||
|
||||
|
|
@ -66,7 +66,7 @@ function changeSelectedTags(newTags) {
|
|||
|
||||
function removeImage(target) {
|
||||
console.log("remove", target);
|
||||
page.value.images = page.value.images.filter(
|
||||
page.value.moodboard = page.value.moodboard.filter(
|
||||
(image) => image.uuid !== target.uuid
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ function addImagesToBrief() {
|
|||
})
|
||||
.then((res) => res.json())
|
||||
.then((json) => {
|
||||
page.value.images = json.images;
|
||||
page.value.moodboard = json.images;
|
||||
console.log(json);
|
||||
})
|
||||
.catch((error) => console.error("Error:", error));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue