pinia+track
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user