Commit ef6e0e9c7691413d522ca3f1e3bf82a59853f854
1 parent
b27f4f97
feat(src/packages): 信息下的摄像头,修改流媒体获取方式
Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | <template v-for="(item, index) in optionData.dataset" :key="index"> |
4 | 4 | <setting-item-box name="源类型" :alone="true"> |
5 | 5 | <setting-item> |
6 | - <n-radio-group @change="handleChecked($event, item)" v-model:value="item.sourceType" name="radiogroup"> | |
6 | + <n-radio-group @change="handleChecked($event, item, index)" v-model:value="item.sourceType" name="radiogroup"> | |
7 | 7 | <n-space> |
8 | 8 | <n-radio v-for="(item, index) in sourceTypes" :key="item.value" :value="item.value"> |
9 | 9 | {{ item.label }} |
... | ... | @@ -102,11 +102,12 @@ const getVideoLists = async (organizationId: string) => { |
102 | 102 | })) |
103 | 103 | } |
104 | 104 | |
105 | -const handleChecked = ({ target }: any, values: object) => { | |
105 | +const handleChecked = ({ target }: any, values: object, index: number) => { | |
106 | 106 | const { value } = target |
107 | 107 | if (value === sourceTypeEnum.PLATFORM) { |
108 | 108 | getOriginationList() |
109 | 109 | } |
110 | + props.optionData.dataset[index].url = '' | |
110 | 111 | } |
111 | 112 | |
112 | 113 | const getVideoUrlById = async (e: any, id: string, index: number) => { | ... | ... |