소스 검색

fix: router redirct to widgets page

hi-cactus! 3 년 전
부모
커밋
4dbc976fad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/containers/Widget/components/Workbench/index.tsx

+ 1 - 1
app/containers/Widget/components/Workbench/index.tsx

@@ -556,7 +556,7 @@ export class Workbench extends React.Component<
     } else {
       onAddWidget(widget, () => {
         message.success('添加成功')
-        this.props.history.replace(`/project/${match.params.projectId}/widgets`)
+        this.props.history.replace(`/project/${match.params.projectId}${prefixPath}/widgets`)
       })
     }
   }