mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +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 imgState = ref('loading') as Ref<'loading' | 'loaded' | 'error'>;
|
||||
const imgStatus = ref('loading');
|
||||
|
||||
function onImageError(event: Event) {
|
||||
@@ -35,7 +34,6 @@ function onImageError(event: Event) {
|
||||
|
||||
(event.target as HTMLImageElement).src = `/images/${props.fallbackName}.png`;
|
||||
imgStatus.value = 'error';
|
||||
// imgState.value = 'error';
|
||||
}
|
||||
|
||||
function onImageLoad() {
|
||||
|
||||
Reference in New Issue
Block a user