Merge branch 'dev'

This commit is contained in:
奔跑的面条 2023-10-08 15:58:23 +08:00
commit 856d7d1de3

View File

@ -15,7 +15,7 @@ let key = ref(Date.now())
// ->
;[SavePageEnum.JSON, SavePageEnum.CHART_TO_PREVIEW].forEach((saveEvent: string) => {
if (!window.opener && !window.opener.addEventListener) return
if (!window.opener || !window.opener.addEventListener) return
window.opener.addEventListener(saveEvent, async (e: any) => {
const localStorageInfo: ChartEditStorageType = await getSessionStorageInfo() as unknown as ChartEditStorageType
setSessionStorage(StorageEnum.GO_CHART_STORAGE_LIST, [{ ...e.detail, id: localStorageInfo.id }])