- AppToast component: top-center blue pill (info), red pill (errors) - Global error handler catches window.error + unhandledrejection - Link copied toast on share and copy link button - use-toast composable: toast.show(message, variant)
16 lines
277 B
Vue
16 lines
277 B
Vue
<script setup lang="ts">
|
|
import { onMounted } from 'vue'
|
|
|
|
import AppToast from '@/components/AppToast.vue'
|
|
import { toast } from '@/composables/use-toast'
|
|
|
|
onMounted(() => {
|
|
toast.setupGlobalErrorHandler()
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<RouterView />
|
|
<AppToast />
|
|
</template>
|