wujie-core/src/utils.ts execHooks 方法修改 #403
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
execHooks 增加 plugins数据的校验
在我本地开发过程中
vue2父应用 内 使用了个vue3+elementplus版的子应用
交互bug不得已 需要每次离开当前父应用页面时 销毁使用的子应用
但是跳转时 控制台有error报错
[wujie error]: TypeError: Cannot read properties of null (reading 'map') undefined 看了一下源码 应该是 子应用被销毁后 无界还在读取子应用的 plugins,子应用被销毁前是有个cssLoader的 销毁后不存在了 所以就抛出error了
这个地方增加一层判断就可以了【ps 微信群反馈过哈】
npm run test
通过详细描述