0.0.1 • Published 6 years ago
vuex-router-history v0.0.1
vuex-router-history
vuex plugin: store vue-router history for better controlling
Useage
import r from '@/router'
import store from '@/store'
import { sync } from 'vuex-router-history'
const router = sync(store, r, options)
new Vue({
el: '#app',
render: () => <App/>
router,
store
})
this.$store.history.stack // history stack
this.$store.history.current // current route
0.0.1
6 years ago