Giter Club home page Giter Club logo

Comments (3)

bhuh12 avatar bhuh12 commented on May 26, 2024

应该是百度的js有试图访问你主页面dom的操作,被浏览器跨域限制了。这个确切来说不算是问题,是浏览器的安全策略。如果有权限跨域操作才是不应该的。

正常的需求场景是嵌入的iframe页面和主页面双方通讯。可以通过postMessage来实现,需要两个系统协作完成。这个你可以自行百度试试。

你也可以试试多嵌入几个其他网站试试,看是否都有这样的报错。

from vue-router-tab.

jackcailj avatar jackcailj commented on May 26, 2024

谢谢反馈,打开百度确实会包报这个错误,但是能打开,之所以查看到这个问题是因为openIframeTab时,页签内容没有显示,跟踪一下发现,router-tab这个class高度为0,增加height:100%后可以了。

from vue-router-tab.

bhuh12 avatar bhuh12 commented on May 26, 2024

好的,我样式也优化一下,到时候加个最小高度

from vue-router-tab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.