diff --git a/CHANGELOG.md b/CHANGELOG.md index 74cdf1c1..77f50501 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.0.29 (2023-01-03) +## 0.0.30 (2023-01-03) - **CI**: 生成态输出文件改为horiozn.producion.min.js ## 0.0.26 (2022-11-09) diff --git a/libs/horizon/package.json b/libs/horizon/package.json index 6960612e..f55ef7f3 100644 --- a/libs/horizon/package.json +++ b/libs/horizon/package.json @@ -4,7 +4,7 @@ "keywords": [ "horizon" ], - "version": "0.0.29", + "version": "0.0.30", "homepage": "", "bugs": "", "main": "index.js", diff --git a/libs/horizon/src/horizonx/devtools/index.ts b/libs/horizon/src/horizonx/devtools/index.ts index e7f3514e..f49deaaa 100644 --- a/libs/horizon/src/horizonx/devtools/index.ts +++ b/libs/horizon/src/horizonx/devtools/index.ts @@ -108,7 +108,7 @@ window.addEventListener('message', messageEvent => { } // executes store action - if (messageEvent.data.payload.type === 'horizonx executue action') { + if (messageEvent.data?.payload?.type === 'horizonx executue action') { const data = messageEvent.data.payload.data; const store = getStore(data.storeId); if (!store?.[data.action]) return;