Showing
1 changed file
with
3 additions
and
8 deletions
| ... | ... | @@ -56,7 +56,7 @@ |
| 56 | 56 | |
| 57 | 57 | <script setup lang="ts"> |
| 58 | 58 | import { PropType, ref, onMounted } from 'vue' |
| 59 | -import { AccessMode, option, sourceTypeEnum, videoListInterface, sourceTypeNameEnum } from './config' | |
| 59 | +import { AccessMode, option, sourceTypeEnum, videoListInterface, sourceTypeNameEnum, Dataset } from './config' | |
| 60 | 60 | import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting' |
| 61 | 61 | import { NTreeSelect } from 'naive-ui' |
| 62 | 62 | import { getOrganizationList, getVideoList, getVideoUrl } from '@/api/external/common/index' |
| ... | ... | @@ -91,7 +91,7 @@ const getOriginationList = async () => { |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | const handleUpdateTreeValue = (value: string) => { |
| 94 | - props.optionData.dataset = {} | |
| 94 | + props.optionData.dataset = {} as Dataset | |
| 95 | 95 | getVideoLists(value) |
| 96 | 96 | } |
| 97 | 97 | |
| ... | ... | @@ -130,13 +130,8 @@ const getVideoControlList = async (deviceId: string, channelId: string) => { |
| 130 | 130 | props.optionData.dataset = flv |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | -//针对自定义地址,直接获取地址 | |
| 134 | -const getCustomUrl = (url: string) => { | |
| 135 | - props.optionData.dataset = url | |
| 136 | -} | |
| 137 | - | |
| 138 | 133 | const handleChecked = (value: string) => { |
| 139 | - props.optionData.dataset = '' | |
| 134 | + props.optionData.dataset = {} as Dataset | |
| 140 | 135 | props.optionData.organization = '' |
| 141 | 136 | props.optionData.videoId = null |
| 142 | 137 | if (value === sourceTypeEnum.PLATFORM) { | ... | ... |