项目作者: L-Chris

项目描述 :
vuex plugin: store vue-router history for better controlling
高级语言: JavaScript
项目地址: git://github.com/L-Chris/vuex-router-history.git
创建时间: 2018-10-21T13:19:56Z
项目社区:https://github.com/L-Chris/vuex-router-history

开源协议:MIT License

下载


vuex-router-history

vuex plugin: store vue-router history for better controlling

Useage

  1. import r from '@/router'
  2. import store from '@/store'
  3. import { sync } from 'vuex-router-history'
  4. const router = sync(store, r, options)
  5. new Vue({
  6. el: '#app',
  7. render: () => <App></App>
  8. router,
  9. store
  10. })
  11. this.$store.history.stack // history stack
  12. this.$store.history.current // current route