ソースを参照

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`)
       })
     }
   }