Skip to content

Commit

Permalink
fix(config-provider): 直接包裹router-view报错 (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoopZhou authored Nov 8, 2022
1 parent 7590879 commit dcb0ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config-provider/config-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const ConfigProvider = Vue.extend({
},

render(): VNode {
if (this.$slots.default.length === 1) {
if (this.$slots.default?.length === 1) {
return this.$slots.default[0];
}
return <div>{this.$slots.default}</div>;
Expand Down

0 comments on commit dcb0ec3

Please sign in to comment.