init
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
<script lang="ts" setup>
|
||||
import {storeToRefs} from 'pinia'
|
||||
import {useChannelStore} from '@/stores/channel'
|
||||
import {computed, ref} from 'vue'
|
||||
import {ref} from 'vue'
|
||||
import {useRoute} from 'vue-router'
|
||||
|
||||
const route = useRoute()
|
||||
const serverId = computed(() => route.params.serverId as string)
|
||||
const props = defineProps<{
|
||||
serverId: string
|
||||
channelId?: string
|
||||
}>();
|
||||
const serverId = props.serverId
|
||||
|
||||
const route = useRoute()
|
||||
const channelStore = useChannelStore()
|
||||
const {channels} = storeToRefs(channelStore)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user