我扩展了LoginScreen,并增加了onAfterShow事件,发现这个事件在某种条件下只会触发一次,而不是每次都触发。
不触发onAfterShow的操作步骤:
1.浏览器打开新标签页,并输入登录地址 http://localhost:9080/app/?p1=abc,此时触发onAfterShow事件
2.刷新浏览器标签页,此时不触发onAfterShow事件
3.手动修改标签页地址为 http://localhost:9080/app/?p1=123,此时依旧不触发onAfterShow事件
触发onAfterShow的操作步骤:
1.浏览器打开新标签页,并输入登录地址 http://localhost:9080/app/?p1=abc,此时触发onAfterShow事件
2.手动关闭当前标签页,并打开新标签页,输入http://localhost:9080/app/?p1=123,此时也能触发onAfterShow事件
请问如何在不关闭浏览器标签页的情况下,每次刷新或者输入新url的时候能触发onAfterShow事件