diff options
author | dartcafe <github@dartcafe.de> | 2022-04-04 09:53:30 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-04-04 09:53:30 +0300 |
commit | 5cdcb7f060a33b9cc56021137b06bc66b731bdb7 (patch) | |
tree | 1d6be1662909a8db93defbe40159cc91ed881564 /src | |
parent | e79a9d518a6485574d08233ce04b9eabac7a2aa8 (diff) |
fix router-sync
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/js/main.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/main.js b/src/js/main.js index cb6ca7a4..e5597de6 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -23,6 +23,7 @@ import Vue from 'vue' import App from './App' +import { sync } from 'vuex-router-sync' import store from './store' import router from './router' import ClickOutside from 'v-click-outside' @@ -39,6 +40,8 @@ __webpack_nonce__ = btoa(getRequestToken()) /* eslint-disable-next-line camelcase, no-undef */ __webpack_public_path__ = generateFilePath('polls', '', 'js/') +sync(store, router) + Vue.config.debug = process.env.NODE_ENV !== 'production' Vue.config.devTools = process.env.NODE_ENV !== 'production' |