feat: error handing: alert -> dialog
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import PostScheme from './post/PostScheme.vue';
|
||||
import AuthorScheme from "./author/AuthorScheme.vue";
|
||||
import MultiSelect from './components/selects/MultiSelect.vue';
|
||||
import { Dialog } from 'primevue';
|
||||
import { useErrorStore } from './stores/error.store';
|
||||
|
||||
const errorStore = useErrorStore()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Dialog v-model:visible="errorStore.show" maximizable class="w-[400px] h-[400px]">
|
||||
<template #header>
|
||||
Ошибка
|
||||
</template>
|
||||
<h1 class="text-red-500 text-2xl">{{ errorStore.message }}</h1>
|
||||
</Dialog>
|
||||
<main class="w-screen h-screen">
|
||||
<AuthorScheme></AuthorScheme>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user