摘要:
dispatch:含有异步操作,eg:向后台提交数据,写法: this.$store.dispatch('mutations方法名',值) commit:同步操作,写法:this.$store.commit('mutations方法名',值) 阅读全文
摘要:
类型于get(query) 和 post(params) 1.query方式传参和接收参数 传参: this.$router.push({ path:"/xxx" query:{ id:id} }) 接收参数:this.$router.query.id 2.params方法传参合接收参数 传参: t 阅读全文