mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
chore: cleanup
This commit is contained in:
@@ -27,7 +27,6 @@ const props = defineProps({
|
|||||||
|
|
||||||
const imgRef = ref(null) as Ref<HTMLElement | null>;
|
const imgRef = ref(null) as Ref<HTMLElement | null>;
|
||||||
|
|
||||||
// const imgState = ref('loading') as Ref<'loading' | 'loaded' | 'error'>;
|
|
||||||
const imgStatus = ref('loading');
|
const imgStatus = ref('loading');
|
||||||
|
|
||||||
function onImageError(event: Event) {
|
function onImageError(event: Event) {
|
||||||
@@ -35,7 +34,6 @@ function onImageError(event: Event) {
|
|||||||
|
|
||||||
(event.target as HTMLImageElement).src = `/images/${props.fallbackName}.png`;
|
(event.target as HTMLImageElement).src = `/images/${props.fallbackName}.png`;
|
||||||
imgStatus.value = 'error';
|
imgStatus.value = 'error';
|
||||||
// imgState.value = 'error';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onImageLoad() {
|
function onImageLoad() {
|
||||||
|
|||||||
Reference in New Issue
Block a user