vuejs / vue-router

🚦 The official router for Vue 2
http://v3.router.vuejs.org/
MIT License
18.99k stars 5.06k forks source link

两层iframe嵌套,在hash模式下,第二层iframe不渲染 #3863

Closed IdealZXL closed 1 year ago

IdealZXL commented 1 year ago

由于项目的特殊性,要涉及到iframe的多级嵌套使用,我在home页面使用iframe加载detail页面,在detail页面使用iframe加载detail2页面,hash模式,detail2页面根本不加载,而history模式就可以,这个是vue-router本身限制,还是浏览器问题?

posva commented 1 year ago

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.

edison1105 commented 1 year ago

是浏览器限制

Infinite recursion is prevented. Any frame that attempts to assign as its SRC a URL used by any of its ancestors is treated as if it has no SRC URL at all (basically a blank frame). This doesn't prevent all malicious documents, but it eliminates a troublesome class of them.

see w3.org/TR/WD-frames-970331