Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
add vuex-router-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonxiang committed Apr 20, 2017
1 parent 2a4cbb7 commit b03ef6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Vue from 'vue';
import FastClick from 'fastclick';
import vuexI18n from 'vuex-i18n';
import VueLeaflet from 'vueleaflet';
import Sync from 'vuex-router-sync'
import {sync} from 'vuex-router-sync'

import router from './router'
import store from './store'
Expand Down Expand Up @@ -55,6 +55,8 @@ router.beforeEach(function(to, from, next){
}
})

sync(store,router)

new Vue({
router,
store,
Expand Down

0 comments on commit b03ef6a

Please sign in to comment.