refactor: format
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import { useAlertStore } from '@/stores/alerts';
|
||||
import { defineAsyncComponent } from 'vue';
|
||||
const AlertItem = defineAsyncComponent(() => import("@/components/AlertItem.vue"));
|
||||
import { useAlertStore } from "@/stores/alerts";
|
||||
import { defineAsyncComponent } from "vue";
|
||||
const AlertItem = defineAsyncComponent(
|
||||
() => import("@/components/AlertItem.vue"),
|
||||
);
|
||||
|
||||
const { alerts } = useAlertStore();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="toast select-none">
|
||||
<alert-item v-for="alert in alerts" :key="alert.created.getTime()" :alert="alert" />
|
||||
<alert-item
|
||||
v-for="alert in alerts"
|
||||
:key="alert.created.getTime()"
|
||||
:alert="alert"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user