fix: bug#16362

This commit is contained in:
XieYongHong 2023-07-14 15:27:53 +08:00
parent b1b09150ff
commit 6dd7f7e387
1 changed files with 4 additions and 2 deletions

View File

@ -130,7 +130,7 @@
:channelData="channelData" :channelData="channelData"
@submit="listRef.reload()" @submit="listRef.reload()"
/> />
<Live v-model:visible="playerVis" :data="channelData" /> <Live v-model:visible="playerVis" :data="playData" />
</page-container> </page-container>
</template> </template>
@ -223,12 +223,14 @@ const handleSearch = (e: any) => {
const saveVis = ref(false); const saveVis = ref(false);
const handleAdd = () => { const handleAdd = () => {
channelData.value = undefined
saveVis.value = true; saveVis.value = true;
}; };
const listRef = ref(); const listRef = ref();
const playerVis = ref(false); const playerVis = ref(false);
const channelData = ref(); const channelData = ref();
const playData = ref();
/** /**
* 表格操作按钮 * 表格操作按钮
@ -261,7 +263,7 @@ const getActions = (
}, },
icon: 'VideoCameraOutlined', icon: 'VideoCameraOutlined',
onClick: () => { onClick: () => {
channelData.value = cloneDeep(data); playData.value = cloneDeep(data);
playerVis.value = true; playerVis.value = true;
}, },
}, },