Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- ...
- <span v-if="total > 0" class="badge">{{ total }}</span>
- ...
- </template>
- <script>
- import { mapGetters } from 'vuex'
- export default {
- mounted() {
- this.initialMount()
- },
- computed: {
- ...mapGetters(['total'])
- },
- methods: {
- initialMount() {
- Echo.private('App.User.' + window.Laravel.authUser.id).notification((notification) => {
- ...
- })
- },
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement