This commit is contained in:
2026-07-05 10:23:57 +02:00
parent ace28a0082
commit e48686815d
4 changed files with 28 additions and 11 deletions
+7 -3
View File
@@ -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)