feat: spots
This commit is contained in:
parent
08010fbb61
commit
a4e1a3328f
20 changed files with 172 additions and 97 deletions
|
@ -1,8 +1,9 @@
|
|||
<script setup lang="ts">
|
||||
import {ref} from "vue";
|
||||
import {onBeforeMount, ref} from "vue";
|
||||
import Archive from "@/components/content/Archive.vue";
|
||||
import Blocks from "@components/content/SmartBlock.vue";
|
||||
import Webstream from "@components/content/Webstream.vue";
|
||||
import {useShowTypeStore} from "@stores/showType.store.ts";
|
||||
|
||||
const tab = ref(null)
|
||||
const tabs = [
|
||||
|
@ -19,6 +20,15 @@ const tabs = [
|
|||
title: 'Webstream',
|
||||
},
|
||||
]
|
||||
|
||||
onBeforeMount(() => {
|
||||
const showTypeStore = useShowTypeStore()
|
||||
if(showTypeStore.currentType == 'spot') {
|
||||
const webstreamIndex = tabs.findIndex(tab => tab.id == 'webstream')
|
||||
tabs.splice(webstreamIndex, 1)
|
||||
}
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue