多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
593 B

<script setup lang="ts">
const props = defineProps<{
item: any
}>()
const router = useRouter()
const route = router.currentRoute
const item = toRef(props, 'item')
const navigateToHome = () => {
if (route.value.path !== '/') {
navigateTo(`/`)
}
}
</script>
<template>
<NotificationItemWrapper :item="item" @click="navigateToHome">
<template #avatar>
<img src="~/assets/img/icons/64x64.png" class="w-6" />
</template>
<div class="text-xs">Welcome to <strong>NocoHUB!</strong> Were excited to have you onboard.</div>
</NotificationItemWrapper>
</template>