diff --git a/src/App.vue b/src/App.vue index 1be4b00..cb831ba 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,29 +5,28 @@ \ No newline at end of file + --> diff --git a/src/utils/pythonBridge.js b/src/utils/pythonBridge.js index 7405148..0a7faaf 100644 --- a/src/utils/pythonBridge.js +++ b/src/utils/pythonBridge.js @@ -128,6 +128,14 @@ export function usePythonBridge() { }); } }; + //跳转到主播页面 + const openAnchorIdRooms = (id) => { + console.log("id",id); + if (pyBridge.value) { + pyBridge.value.openAnchorIdRoom(id, function (result) { + }); + } + }; //导出表格 const exportToExcel = (data) => { @@ -169,6 +177,7 @@ export function usePythonBridge() { deleteStorageData, Specifystreaming, setStorageStreamId, - getStorageStreamId + getStorageStreamId, + openAnchorIdRooms }; } \ No newline at end of file diff --git a/src/views/hosts/hostsList.vue b/src/views/hosts/hostsList.vue index c8611dd..e4b060e 100644 --- a/src/views/hosts/hostsList.vue +++ b/src/views/hosts/hostsList.vue @@ -184,22 +184,21 @@ - + > - + { - openhostDisplayId(event); - }, 500); -} -//长按结束 -function resetTimer() { - clearTimeout(longPressTimer); + openAnchorIdRooms(event); } //复制单元格内容 function handleCellDbClick(row, column, cell, event) { @@ -610,6 +602,7 @@ const { Specifystreaming, setStorageStreamId, getStorageStreamId, + openAnchorIdRooms, } = usePythonBridge(); let num = ref(0);