client brief > my images : upload images working
This commit is contained in:
parent
663f841fff
commit
8c19269e48
24 changed files with 164 additions and 108 deletions
|
|
@ -8,7 +8,7 @@
|
|||
style="--row-gap: var(--space-8)"
|
||||
>
|
||||
<AccordionPanel
|
||||
v-for="(image, index) in images"
|
||||
v-for="(image, index) in page.images"
|
||||
:key="index + 1"
|
||||
:value="index"
|
||||
class="w-full | bg-white | rounded-xl | p-12 pt-8"
|
||||
|
|
@ -109,18 +109,15 @@ import AccordionContent from "primevue/accordioncontent";
|
|||
import { usePageStore } from "../../../../stores/page";
|
||||
import { toPascalCase } from "../../../../helpers";
|
||||
import debounce from "lodash/debounce";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
const { images } = defineProps({
|
||||
images: Array,
|
||||
});
|
||||
|
||||
const { page } = usePageStore();
|
||||
const { page } = storeToRefs(usePageStore());
|
||||
|
||||
function saveTags(image) {
|
||||
const headers = {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
pageUri: page.uri,
|
||||
pageUri: page.value.uri,
|
||||
fileName: image.name,
|
||||
properties: [
|
||||
{
|
||||
|
|
@ -144,7 +141,7 @@ const saveDescription = debounce((image) => {
|
|||
const headers = {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
pageUri: page.uri,
|
||||
pageUri: page.value.uri,
|
||||
fileName: image.name,
|
||||
properties: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue