Skip to content

Commit

Permalink
Merge pull request #2355 from nextcloud/dev/fix-router
Browse files Browse the repository at this point in the history
fix router-sync
  • Loading branch information
dartcafe committed Apr 4, 2022
2 parents 2e6a253 + 5cdcb7f commit c64eddc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"vue-router": "^3.5.3",
"vuedraggable": "^2.24.3",
"vuex": "^3.6.2",
"vuex-router-sync": "^5.0.0",
"xlsx": "^0.18.5"
},
"browserslist": [
Expand Down
3 changes: 3 additions & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'

Expand Down

0 comments on commit c64eddc

Please sign in to comment.