fix: adapter.ts/updateElementInfo当a标签configurable为false导致的bug #1528
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.
【bug修复】
修复了一个bug,该bug导致嵌套3层vue页面的场景下(应用a>应用b>应用c),当被嵌套的第3层页面包含a标签时无法正常加载。
【bug原因】
vue2会将a标签href属性的属性描述符configurable设为false。相关代码(adapter.ts/updateElementInfo)在调用rawDefineProperties前未作判别
问题描述
复现步骤
1.应用a加载应用b,应用b加载应用c,3个应用均为vue2项目
2.应用c被加载页面包含a标签(无a标签时表现正常)
上传截图
复现仓库
环境信息