beforeRouteLeave: (to, from, next) => {
console.log(to);
// console.log(this.$store.state.goodsSerchData) 提示underfind
// this.store.commit('changeGoodsTet');提示underfind
next()
}
beforeRouteLeave: (to, from, next) => {
console.log(to);
// console.log(this.$store.state.goodsSerchData) 提示underfind
// this.store.commit('changeGoodsTet');提示underfind
next()
}
2 回答1.6k 阅读✓ 已解决
2 回答958 阅读✓ 已解决
4 回答1.4k 阅读
1 回答1k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
1 回答840 阅读✓ 已解决
2 回答822 阅读
在页面引入store 例如:import store from '../vuex/index'