stream day 2
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
hello world
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
$fetch('/api/getChannelById', { params: { test: 123 } })
|
||||
<script setup async>
|
||||
import { useServerStore } from '~/stores/servers'
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
const { server } = await $fetch(`/api/channel/${route.params.id}`)
|
||||
if (!useServerStore().servers.includes(server)) useServerStore().addServer(server);
|
||||
</script>
|
||||
Reference in New Issue
Block a user