Passing router as reactive object to store, so values are automatically unwrapped.

This commit is contained in:
DebaucheryLibrarian 2020-12-27 00:32:42 +01:00
parent c503e12adb
commit 2e95e1e32b
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { createApp } from 'vue';
import { createApp, reactive } from 'vue';
import dayjs from 'dayjs';
import router from './router';
@ -15,7 +15,7 @@ import Footer from '../components/footer/footer.vue';
import Tooltip from '../components/tooltip/tooltip.vue';
async function init() {
const store = initStore(router);
const store = initStore(reactive(router));
const app = createApp(Container);
initUiObservers(store, router);