Utilizing beforeRouteLeave to display a warning during screen transitions, however, it triggers in all cases within that specific URL.
I am specifically interested in making it function only when importing a file within that URL (while the progress bar is active). If there is an algorithm that can restrict its functionality to only occur during the import process and not affect the entire URL, please advise.
If you possess any pertinent information, kindly share it with me.