摘要: vuex中的this.$store.commit的使用: 使用场景: 平行组件之间传递数据,很多数据需要多个组件循环使用;如:用户的登录,注册; 使用方法: 1.安装vueX npm install vuex --save 2.在index.html同级新建文件夹store,在文件夹内新建index 阅读全文
posted @ 2021-03-06 15:45 我是个假前端~~~ 阅读(35159) 评论(0) 推荐(5)
摘要: 解决方案: 将new Vuex.store的store的s大写; 阅读全文
posted @ 2021-03-06 15:43 我是个假前端~~~ 阅读(106) 评论(0) 推荐(0)
摘要: vue+webpack搭建项目超详细教程 转自https://blog.csdn.net/weixin_45627031/article/details/107846016 1.安装node; 2.安装淘宝镜像; #-g 全局配置(有可能失败,假如失败后尝试下面代码就会成功) npm install 阅读全文
posted @ 2021-03-06 15:35 我是个假前端~~~ 阅读(144) 评论(0) 推荐(0)