We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
比如store下面2个模块c和d,我想把请求都放在action里,为了方便以后复制粘贴,比如2个组件同是查询,都取名query,2个模块里的action都有个query方法,
我在组件里通过this.$store.dispatch('query')时,发现2个都调到了。 有什么办法指定调c或者d里的actions不?
The text was updated successfully, but these errors were encountered:
模塊僅有區分 States。Actions, Getters, Mutations 並沒有分模塊,你需要用命名空間(Namespace)。請參閱 #335。
Sorry, something went wrong.
^ As above, thanks for the explanation @YamiOdymel
No branches or pull requests
比如store下面2个模块c和d,我想把请求都放在action里,为了方便以后复制粘贴,比如2个组件同是查询,都取名query,2个模块里的action都有个query方法,
我在组件里通过this.$store.dispatch('query')时,发现2个都调到了。
有什么办法指定调c或者d里的actions不?
The text was updated successfully, but these errors were encountered: