Last active
August 27, 2021 05:20
-
-
Save bingliangchan/1806120316468a152d36f44f73148b77 to your computer and use it in GitHub Desktop.
Vue Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template src="./MenuSideBar.html"></template> | |
<style src="./MenuSideBar.css"></style> | |
<script> | |
import { mapGetters, mapActions } from 'vuex'; | |
import { isNullOruUndefined } from '../../utilities/util'; | |
export default { | |
name: 'MenuSideBar', | |
props: { | |
msg: String, | |
}, | |
mounted() { | |
this.isLoaded = true; | |
}, | |
data() { | |
return { | |
isLoaded: false, | |
}; | |
}, | |
computed: { | |
...mapGetters({ | |
shopinfo: 'shopinfo', | |
}), | |
}, | |
methods: { | |
...mapActions(['updateCustomerAction']), | |
showCartBox() { | |
this.$root.$emit('showcart'); | |
} | |
}, | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment