iframe多层嵌套之后,对应的本地路径不能正常显示 #2533
Unanswered
tengerfly
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
vue-router定义了三个页面,分别是 http://localhost:8080/test/#/a, http://localhost:8080/test/#/b, http://localhost:8080/test/#/c, 这三个页面,webpack中publicPath设置为/test/,vue-router 中也设置了base为/test/ 在a页面有一个iframe,iframe的路径是http://localhost:8080/test/#/b,在b页面也有一个iframe,iframe的路径是http://localhost:8080/test/#/c, 其中iframe为http://localhost:8080/test/#/b的页面正常显示,iframe路径为http://localhost:8080/test/#/c的iframe 没有正常显示,查看network http://localhost:8080/test/#/c的iframe资源没有加载,且浏览器查看对应iframe信息,对应的网址为空,三个页面都在同一个项目下,且同源,没有设施CSP,http://localhost:8080/test/#/c 这是什么原因导致的?
Beta Was this translation helpful? Give feedback.
All reactions