I use vue+vue-router to develop projects, and then because it involves pages that need to introduce third parties, I use iframe to store third-party pages.
but there are two problems,
1. That is, when the iframe jumps inside, pressing the return key to move the break will perform the return within the iframe, rather than the outside return
2. Even if there is a redirect in iframe to return to my own page, then I use the plug-in to notify the outside of iframe when I return to the iframe page I wrote, receive the notification and turn off iframe,. At this time, there is no way to return normally when I press return. It will also be affected by iframe. I need to return multiple times
I would like to ask if there is any good solution. Please let me know, thank you. Here is the code
the following is the trigger for iframe to close
let Messenger1 = new Messenger ("finishTicketForm","finishTicket");
Messenger1.listen ((data) = > {
if(data){
vm.iframeUrl = "";
}
})