How vue multiple pages share status

The

project is a single-page application built with vue, but there is a requirement that a table opens a new browser window after each row of data is clicked, and the operations done on the new window can be shared by the original window, and no more than one new window can be opened, that is to say, you click on the first row of data in the table and open a new window. If you click on the second line now, you will not be allowed. You must close the newly opened window.
originally wanted to use store to share the status, but found that after the new window submitted commit, the store value of the new window did change, but the original window store did not change, that is to say, the store between the two windows could not be shared. The answer found on the Internet is that it can be stored in localstorage, but if there are a lot of shared states, it will be troublesome.

Mar.14,2021

vuex maybe you can try


use localStorage


postMessage?

isn't this the exchange of information between documents?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e58609-44ce6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e58609-44ce6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?