模块注册 store.registerModule():store实例对象提供了动态创建模块的接口 (和module属性差不多,这个跟方便简洁) 状态替换 store.replaceState():可以通过store.replaceState()方法实现状态替换。