|
|
@ -101,7 +101,7 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
...mapState(["cartProducts"]),
|
|
|
|
...mapState(["cartProducts", "token"]),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
cartProducts: {
|
|
|
|
cartProducts: {
|
|
|
@ -126,7 +126,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.$store.dispatch("getCartProducts");
|
|
|
|
if (this.token) {
|
|
|
|
|
|
|
|
this.$store.dispatch("getCartProducts");
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
onJumpCart() {
|
|
|
|
onJumpCart() {
|
|
|
|