|
|
@@ -13,7 +13,6 @@ Si la propriété 'upload' est à 'true', propose aussi un input pour uploader u
|
|
|
:height="height"
|
|
|
:width="width"
|
|
|
aspect-ratio="1"
|
|
|
- @click="refresh"
|
|
|
>
|
|
|
<template #placeholder>
|
|
|
<v-row
|
|
|
@@ -53,6 +52,7 @@ import {ref, Ref} from "@vue/reactivity";
|
|
|
import {useImageFetch} from "~/composables/data/useImageFetch";
|
|
|
import {onUnmounted, watch, WatchStopHandle} from "@vue/runtime-core";
|
|
|
import {useImageManager} from "~/composables/data/useImageManager";
|
|
|
+import ImageManager from "~/services/data/imageManager";
|
|
|
|
|
|
const props = defineProps({
|
|
|
id: {
|
|
|
@@ -90,7 +90,7 @@ const props = defineProps({
|
|
|
const { imageManager } = useImageManager()
|
|
|
const { fetch } = useImageFetch()
|
|
|
|
|
|
-const defaultImagePath = props.defaultImage ?? imageManager.defaultImage
|
|
|
+const defaultImagePath = props.defaultImage ?? ImageManager.defaultImage
|
|
|
|
|
|
const openUpload: Ref<Boolean> = ref(false)
|
|
|
|
|
|
@@ -114,7 +114,7 @@ const reset = () => {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Lorsqu'on démonte le component on supprime le watcher
|
|
|
+ * Lorsqu'on démonte le component, on supprime le watcher
|
|
|
*/
|
|
|
onUnmounted(() => {
|
|
|
unwatch()
|