refactor: 优化跨标签会话同步、引入强类型安全JSON解析工具及Seller样式重构
This commit is contained in:
@@ -21,4 +21,11 @@ window.addEventListener("auth-storage-changed", () => {
|
||||
useAdminSessionStore(pinia).syncFromStorage();
|
||||
});
|
||||
|
||||
window.addEventListener("storage", (event) => {
|
||||
if (event.storageArea === localStorage) {
|
||||
useSessionStore(pinia).syncFromStorage();
|
||||
useAdminSessionStore(pinia).syncFromStorage();
|
||||
}
|
||||
});
|
||||
|
||||
router.isReady().then(() => app.mount("#app"));
|
||||
|
||||
Reference in New Issue
Block a user