forked from DebaucheryLibrarian/traxxx
Passing router as reactive object to store, so values are automatically unwrapped.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { createApp } from 'vue';
|
import { createApp, reactive } from 'vue';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
import router from './router';
|
import router from './router';
|
||||||
@@ -15,7 +15,7 @@ import Footer from '../components/footer/footer.vue';
|
|||||||
import Tooltip from '../components/tooltip/tooltip.vue';
|
import Tooltip from '../components/tooltip/tooltip.vue';
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
const store = initStore(router);
|
const store = initStore(reactive(router));
|
||||||
const app = createApp(Container);
|
const app = createApp(Container);
|
||||||
|
|
||||||
initUiObservers(store, router);
|
initUiObservers(store, router);
|
||||||
|
|||||||
Reference in New Issue
Block a user