vuejs / vue-hackernews-2.0

HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering
MIT License
10.96k stars 2.15k forks source link

拆分Store,动态注册store.registerModule('foo', fooStoreModule),会重复注册action,和mutation #323

Open clevergod opened 6 years ago

clevergod commented 6 years ago

重要信息:当多次访问路由时, asyncData ({ store }) { store.registerModule('foo', fooStoreModule) return store.dispatch('foo/inc') } 会重复注册action,和mutation