沒使用vuex時方法里面this.$router.back(-1)這樣返回上一頁 使用了vuex后mutations這樣寫報錯了Cannot read property 'back' of undefinedmethods: {
release () {
this.$router.back(-1)
}
}mutations: {
RELEASE () { this.$router.back(-1) //Cannot read property 'back' of undefined
}
}
添加回答
舉報
0/150
提交
取消