摘要: 两个方法都是传值给vuex的mutation改变state dispatch:异步操作,数据提交至 actions ,可用于向后台提交数据 this.$store.dispatch('isLogin', true); commit: 同步操作,数据提交至 mutations ,可用于登录成功后读取用 阅读全文
posted @ 2023-06-25 11:31 以后。h 阅读(1122) 评论(0) 推荐(0) 编辑