假设有如下state定义. 一、普通用法. 在组件中直接访问: this.$store.state.count. 二、mapState辅助函数用法1. 使用对象展开运算符,会默认传递参数state,在函数中 ...
確定! 回上一頁