Need multiple instances of Vuex module for multiple Vue instances
问题 I'm integrating Vue onto a site for forms, which means I have to create several instances of that Vue application if there are multiple forms on the page. All instances share the same Vuex store. I created a Vuex module so that each Vue instance could have it's own local state. My main goal is to prevent one Vue instance from updating the state of another Vue instance. Here's my Vuex module export default { state() { return { stateObj: {...} } } } Creating my Vuex instance: export default new