How to call another tab when a system opens a new tab

how can a new page opened by a system made by vue call the methods of other tabs?
for example, there is a loadData method in the original tag A
how to call the loadData method of the A tag in the newly opened B tag

Apr.28,2022

are the two pages homologous? If so, you can listen for storage events in A tag, and then change localStorage

in B tag.

A page:

  

you can write loadData as a public method, and all interfaces can be used by import.

Menu