Добавлен сервис уведомлений

This commit is contained in:
brusnitsyn
2025-12-19 09:19:41 +09:00
parent b86cdaec90
commit 9057d3e8ad
3 changed files with 65 additions and 6 deletions

View File

@@ -3,19 +3,26 @@ import '../css/app.css';
import { createApp, h } from 'vue'
import { createInertiaApp } from '@inertiajs/vue3'
import {createPinia} from "pinia";
import {setupNaiveDiscreteApi} from "./Plugins/naiveUI.js";
createInertiaApp({
id: 'kartoteka',
resolve: name => {
const pages = import.meta.glob('./Pages/**/*.vue', { eager: true })
const pages = import.meta.glob('./Pages/**/*.vue', {eager: true})
return pages[`./Pages/${name}.vue`]
},
setup({ el, App, props, plugin }) {
setup({el, App, props, plugin}) {
const vueApp = createApp({render: () => h(App, props)})
const pinia = createPinia()
createApp({ render: () => h(App, props) })
.use(plugin)
.use(pinia)
.mount(el)
vueApp.use(plugin)
vueApp.use(pinia)
setupNaiveDiscreteApi(vueApp)
vueApp.mount(el)
},
}).then(r => {
console.log('Инициализация прошла успешно')
})