Unverified Commit 824a3e80 authored by ZackYoung's avatar ZackYoung Committed by GitHub

fix_breadcrumb (#2659)

parent c3c7076e
...@@ -150,14 +150,13 @@ const Project: React.FC = (props: connect) => { ...@@ -150,14 +150,13 @@ const Project: React.FC = (props: connect) => {
} }
} }
path.pop();
dispatch({ dispatch({
type: STUDIO_MODEL.addTab, type: STUDIO_MODEL.addTab,
payload: { payload: {
icon: type, icon: type,
id: parentId + name, id: parentId + name,
treeKey: key, treeKey: key,
breadcrumbLabel: path.join('/'), breadcrumbLabel: path.slice(0,path.length-1).join('/'),
label: name, label: name,
params: { params: {
taskId: taskId taskId: taskId
......
...@@ -723,7 +723,8 @@ const Model: ModelType = { ...@@ -723,7 +723,8 @@ const Model: ModelType = {
...state, ...state,
tabs: { tabs: {
...state.tabs, ...state.tabs,
activeKey: item.key activeKey: item.key,
activeBreadcrumbTitle: [item.type, item.breadcrumbLabel, item.label].join('/'),
}, },
footContainer: { footContainer: {
...state.footContainer, ...state.footContainer,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment