mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-06-07 05:57:41 +00:00
small update
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
616208071c
commit
5b1c140e85
1 changed files with 5 additions and 4 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue