没使用vuex时方法里面this.$router.back(-1)这样返回上一页 使用了vuex后mutations这样写报错了Cannot read property 'back' of undefined
methods: {
release () {
this.$router.back(-1)
}
}mutations: {
RELEASE () { this.$router.back(-1) //Cannot read property 'back' of undefined
}
}
皈依舞
慕尼黑8549860
随时随地看视频慕课网APP
相关分类