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) => {
}
}
path.pop();
dispatch({
type: STUDIO_MODEL.addTab,
payload: {
icon: type,
id: parentId + name,
treeKey: key,
breadcrumbLabel: path.join('/'),
breadcrumbLabel: path.slice(0,path.length-1).join('/'),
label: name,
params: {
taskId: taskId
......
......@@ -723,7 +723,8 @@ const Model: ModelType = {
...state,
tabs: {
...state.tabs,
activeKey: item.key
activeKey: item.key,
activeBreadcrumbTitle: [item.type, item.breadcrumbLabel, item.label].join('/'),
},
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