Merge branch 'feature/task1.0.0' into 'msb_test'

Feature/task1.0.0

See merge request yanxuan-frontend/shop-pc!45
merge-requests/47/merge
肖广 2 years ago
commit d261e30fb8

@ -150,7 +150,7 @@ export default {
const { result, error } = await ApiPostLogin({
...this.form,
clientId: 1,
systemId: 3,
systemId: 1,
});
if (error !== null) {
Message.error(

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

Loading…
Cancel
Save