pinia+track

This commit is contained in:
2023-09-20 21:42:31 +02:00
parent d64cb69f1e
commit dabadaa1c9
16 changed files with 216 additions and 113 deletions

View File

@@ -1,4 +1,5 @@
import { providePocketBase } from '@/pocketbase';
import { createPinia } from 'pinia';
import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import App from './App.vue';
@@ -7,6 +8,7 @@ import './style.css';
const app = createApp(App);
const pb = providePocketBase(app);
const pinia = createPinia();
const router = createRouter({
history: createWebHistory(),
routes,
@@ -20,6 +22,7 @@ router.beforeEach(async to => {
}
});
app.use(pinia);
app.use(router);
app.mount('#app');