Skip to content

Commit 8583de8

Browse files
authored
fix error TS2339: Property '' does not exist on type CreateComponentPublicInstance (#14144)
1 parent 67f50e3 commit 8583de8

File tree

1 file changed

+3
-2
lines changed
  • dolphinscheduler-ui/src/layouts/content

1 file changed

+3
-2
lines changed

dolphinscheduler-ui/src/layouts/content/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ const Content = defineComponent({
9696
return {
9797
...toRefs(state),
9898
changeMenuOption,
99-
sideKeyRef
99+
sideKeyRef,
100+
currentRoute: route
100101
}
101102
},
102103
render() {
@@ -123,7 +124,7 @@ const Content = defineComponent({
123124
style='padding: 16px 22px'
124125
contentStyle={'height: 100%'}
125126
>
126-
<router-view key={this.$route.fullPath} />
127+
<router-view key={this.currentRoute.fullPath} />
127128
</NLayoutContent>
128129
</NLayout>
129130
</NLayout>

0 commit comments

Comments
 (0)