Skip to content
Snippets Groups Projects
Commit 9d3beb31 authored by syuilo's avatar syuilo
Browse files

fix(client): Fix #6540

parent b6c3399a
No related branches found
No related tags found
No related merge requests found
......@@ -103,9 +103,13 @@ document.body.innerHTML = '<div id="app"></div>';
const store = createStore();
// 他のタブと永続化されたstateを同期
window.addEventListener('storage', e => {
if (e.key === 'vuex') {
store.replaceState(JSON.parse(localStorage['vuex']));
store.replaceState({
...store.state,
...JSON.parse(e.newValue)
});
} else if (e.key === 'i') {
location.reload();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment