feat: error handing: alert -> dialog

This commit is contained in:
opbnq-q
2025-03-09 04:38:45 -07:00
parent f648b4b171
commit d149aebf12
4 changed files with 40 additions and 5 deletions

View File

@@ -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>