You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
请仔细查看文档。
https://vuex.vuejs.org/zh-cn/state.html
在2017年05月15日 17:12,whatisthefuck<[email protected]> 写道:
能请教一个小问题吗?
我看到关于mapState/mapMutations这些的地方,你的写法都是跟文档不一样的。、
computed: {
...mapState({ //这些写法你是从何得知的呢?然后你可以跟我说一下为什么可以这样写吗?
searchNews: state => state.SelectStore.searchNews
})
},
因为官方文档给出的事例是这样的
computed : mapState({
searchNews: state => state.SelectStore.searchNews
})
另外你的mapMutations也都是这样写的。还望指点一下:
这些写法你是从何得知的呢?然后你可以跟我说一下为什么可以这样写吗?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
能请教一个小问题吗?
我看到关于mapState/mapMutations这些的地方,你的写法都是跟文档不一样的。、
因为官方文档给出的事例是这样的
另外你的mapMutations也都是这样写的。还望指点一下:
这些写法你是从何得知的呢?然后你可以跟我说一下为什么可以这样写吗?
The text was updated successfully, but these errors were encountered: