Skip to content

Commit

Permalink
fix: 修复预览窗口内部切换时不更随颜色模式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiaiwanqian committed May 14, 2024
1 parent 997bb9b commit 2ddf1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/plugin-tdoc/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default defineComponent({
this.$emit('loaded', () => {
tdDocContent.pageStatus = 'show';
});
if (this.$refs.parentIframe && this.$refs.parentIframe.onload) {
if (this.$refs.parentIframe) {
this.$refs.parentIframe.onload = () => {
watchExampleRouterChange(this.$refs.parentIframe);
};
Expand Down

0 comments on commit 2ddf1be

Please sign in to comment.