fix error TS2339: Property '' does not exist on type CreateComponentPublicInstance (#14144)

This commit is contained in:
Kerwin 2023-05-18 18:46:42 +08:00 committed by GitHub
parent 67f50e3904
commit 8583de878b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,8 @@ const Content = defineComponent({
return {
...toRefs(state),
changeMenuOption,
sideKeyRef
sideKeyRef,
currentRoute: route
}
},
render() {
@ -123,7 +124,7 @@ const Content = defineComponent({
style='padding: 16px 22px'
contentStyle={'height: 100%'}
>
<router-view key={this.$route.fullPath} />
<router-view key={this.currentRoute.fullPath} />
</NLayoutContent>
</NLayout>
</NLayout>