Passing router as reactive object to store, so values are automatically unwrapped.
This commit is contained in:
parent
c503e12adb
commit
2e95e1e32b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue