You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by li...@apache.org on 2023/05/18 10:46:51 UTC

[dolphinscheduler] branch dev updated: fix error TS2339: Property '' does not exist on type CreateComponentPublicInstance (#14144)

This is an automated email from the ASF dual-hosted git repository.

liudongkai pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 8583de878b fix error TS2339: Property '' does not exist on type CreateComponentPublicInstance (#14144)
8583de878b is described below

commit 8583de878bfb877c9c9cb41b2ab8286b8d1dd0d9
Author: Kerwin <37...@users.noreply.github.com>
AuthorDate: Thu May 18 18:46:42 2023 +0800

    fix error TS2339: Property '' does not exist on type CreateComponentPublicInstance (#14144)
---
 dolphinscheduler-ui/src/layouts/content/index.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dolphinscheduler-ui/src/layouts/content/index.tsx b/dolphinscheduler-ui/src/layouts/content/index.tsx
index b4a1f6e20a..1d4d811e09 100644
--- a/dolphinscheduler-ui/src/layouts/content/index.tsx
+++ b/dolphinscheduler-ui/src/layouts/content/index.tsx
@@ -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>