You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
560 B
22 lines
560 B
![]()
2 years ago
|
<template>
|
||
|
<router-view></router-view>
|
||
|
</template>
|
||
|
<script setup>
|
||
|
import { useStore } from "vuex"
|
||
|
import { useRoute } from "vue-router"
|
||
|
import { onMounted, provide, readonly, ref, watch } from "vue"
|
||
|
import { useSocialInfo } from "../../composables/useSocialInfo"
|
||
|
|
||
|
const store = useStore()
|
||
|
const route = useRoute()
|
||
|
|
||
|
const { user, isCurrentUser, groupInfo, isGroup, loadUser } = useSocialInfo()
|
||
|
|
||
|
provide("social-user", user)
|
||
|
provide("is-current-user", isCurrentUser)
|
||
|
provide("group-info", groupInfo)
|
||
|
provide("is-group", isGroup)
|
||
|
|
||
|
onMounted(loadUser)
|
||
|
</script>
|