Vue中在templite中{{$store.state.bianliang}},this是可以省略的。
在这里插入图片描述用…mapState([‘count’]),采用这种方式可以直接调用变量的

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐