问答 查看内容
返回列表

隐藏数据大屏的返回后投屏键

25 1
发表于 昨天 11:39 | 查看全部 阅读模式

当在大屏上有操作时,会出现返回和退出大屏,这个能否进行隐藏。
截图202512161136193390.png

评论1

观小枫楼主Lv.1 发表于 昨天 11:42 | 查看全部
可以通过我们的前端插件来实现隐藏:
截图202512161140439061.png
GD.on('gd-route-change', () => {
    const { pathname, search } = window.location
    if(pathname.includes('/cast') && search.includes('ps=iframe2')) {
        const styleEle = document.getElementById('_custom_hide_cast_exit_button__')
        if(styleEle) return
        const newStyle = document.createElement('style')
        newStyle.id = '_custom_hide_cast_exit_button__'
        const textNode = `
           #page-container > #pageContent .digitalLayoutContainer + div {
               display: none !important;
           }
        `
        const css = document.createTextNode(textNode)
        newStyle.appendChild(css)
        document.head.appendChild(newStyle)
    }
})

回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

微信服务号
联系我们
电话:400-880-0750
邮箱:hello@guandata.com
Copyright © 2001-2025 观远社区 版权所有 All Rights Reserved. 浙 ICP 备15006424号-3
去回复 去发帖 返回顶部
快速回复 返回顶部 返回列表