UrlRouterProvider.when jump problem

As soon as the

project comes in, a page is loaded dynamically, but before the page is loaded, I manually switch to another page, but the original js has not been destroyed, and the code in the urlRouterProvider.when is still executing, which will cause the page to jump back to the original page.
clipboard.png
executes the code that underlines,

Mar.17,2021
Menu