Добавлен сервис уведомлений
This commit is contained in:
@@ -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('Инициализация прошла успешно')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user