vuex模块中使用namespaced之后的引用方法July 12, 2020

利用createNamespacedHelpers函数快速获取vuex模块的状态。

#vue#vuex#namespaced

eat();

sleep();

code();

repeat();