瀏覽代碼

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