- 链接地址:https://blog.csdn.net/qq_38502918/article/details/124334771
- 链接标题:vue2与vue3中vuex的使用对比-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:8541
文章浏览阅读1.6k次。vue2 methods: { //mapMutations中方法 ...mapMutations(['setLogin', 'setIndex']), toShow(){ //使用mapMutations方法 this.setIndex('3'); this.$router.replace("/couple"); }, logOut(){ //使用mapMutations方法 this.setLogin({Authorization:'',
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除