small update

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-02-02 23:35:29 +01:00
parent 616208071c
commit 5b1c140e85

View file

@ -32,12 +32,13 @@
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onErrorCaptured } from 'vue' import { onErrorCaptured, ref } from 'vue'
import useAxios from './composables/useAxios'
import { IconSpinner, IconError } from '@/components/icons' import { IconSpinner, IconError } from '@/components/icons'
const { error } = useAxios()
const error = ref(null)
onErrorCaptured((e: any) => { onErrorCaptured((e: any) => {
error.value = e error.value = e
return true return false
}) })
</script> </script>