Преглед на файлове

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