mapActions参数传递方法一this.$store.dispatch('setShowLogin',true)方法二将this.setShowLogin()映射到this.$store.dispatch('setShowLogin')...mapActions(['setShowLogin',]),方法3将this.isLogin()映射到this.$store.dispatch('setShowLogin')...mapActions({isLogin:'setShowLogin',}),或this.isLogin(true)mapMutations参数传递方法1this.$store。commit('SET_SHOW_LOGIN',true)其他参数传递方式与mapActions基本一致如有问题请联系作者及时改正
