The element-ui dialog component is used internally in iframe. Can it be popped up in the parent layer of the iframe?

the element-ui dialog component is used internally in iframe. Can it be popped up in the parent layer of the iframe?

this is a background management system, the back end does not allow the separation of front and rear, as long as I put out the static page to ok. So the iframe I use

clipboard.png

seek a solution, or provide a better solution, thank you very much!

Apr.07,2021

The

method is that instead of using iframe, you can try to communicate between subdomains. When you pop up dialog, add a mask layer to three iframe at the same time, and then adjust the margin-left of dialog so that it deviates from the middle point

.

if your three pages are under the same domain, localStorage learn about it, listen to the localStorage event and add a mask layer

.

of course, write the pop-up box method on the parent page of iframe, and the child page calls the pop-up window parent page method OK. (hint: elementui plug-ins are all based on vue, pop-up window method should be written into vue.)


has the landlord solved this problem?

Menu