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
肖广 3 years ago
commit d261e30fb8

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

@ -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() {
if (this.token) {
this.$store.dispatch("getCartProducts"); this.$store.dispatch("getCartProducts");
}
}, },
methods: { methods: {
onJumpCart() { onJumpCart() {

Loading…
Cancel
Save