mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Use 'mapMutations' in default layout
This commit is contained in:
parent
c7deefa563
commit
a3b3e02ebc
@ -20,7 +20,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters, mapMutations } from 'vuex'
|
||||||
import seo from '~/mixins/seo'
|
import seo from '~/mixins/seo'
|
||||||
import mobile from '~/mixins/mobile'
|
import mobile from '~/mixins/mobile'
|
||||||
import HeaderMenu from '~/components/HeaderMenu/HeaderMenu'
|
import HeaderMenu from '~/components/HeaderMenu/HeaderMenu'
|
||||||
@ -42,8 +42,11 @@ export default {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations({
|
||||||
|
showChat: 'chat/SET_OPEN_CHAT',
|
||||||
|
}),
|
||||||
closeSingleRoom() {
|
closeSingleRoom() {
|
||||||
this.$store.commit('chat/SET_OPEN_CHAT', { showChat: false, roomID: null })
|
this.showChat({ showChat: false, roomID: null })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user