Для синхронизации или передаче данных между разными вкладками можно использовать LocalStorage
Во Vue можно даже сделать реактивную обертку.
Но можно гораздо проще и эффективней - через Broadcast Channel API. C помощью него можно создавать канал, постить в него сообщения и слушать сообщения приходящие в этот канал.
// Создаем канал const bc = new BroadcastChannel("share_channel");
// Посылаем сообщение в канал bc.postMessage("Сообщение какое-то");
// Ловим событие в канале bc.onmessage = (event) => { console.log(event); };
Также postMessage можно использовать для связи открытых окон ( login ) с родительским окном - window.opener.postMessage()
Для синхронизации или передаче данных между разными вкладками можно использовать LocalStorage
Во Vue можно даже сделать реактивную обертку.
Но можно гораздо проще и эффективней - через Broadcast Channel API. C помощью него можно создавать канал, постить в него сообщения и слушать сообщения приходящие в этот канал.
// Создаем канал const bc = new BroadcastChannel("share_channel");
// Посылаем сообщение в канал bc.postMessage("Сообщение какое-то");
// Ловим событие в канале bc.onmessage = (event) => { console.log(event); };
Также postMessage можно использовать для связи открытых окон ( login ) с родительским окном - window.opener.postMessage()
The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.
Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.