天天看点

vuex 动态注册module使用

vuex 动态注册方法 registerModule的实现示例:

使用场景:三方库,不污染主工程vuex

module c.js如下:

vuex 动态注册module使用

组件中动态注册module使用:

继续阅读