Unverified Commit 662c0d46 authored by gaoyan's avatar gaoyan Committed by GitHub

[Optmization]Remove automatic Console popup when switching tasks (#3385)

parent e30f4bc6
......@@ -18,7 +18,6 @@
*/
import RightContextMenu from '@/components/RightContextMenu';
import { LeftBottomKey } from '@/pages/DataStudio/data.d';
import { getTabByTaskId } from '@/pages/DataStudio/function';
import { useTasksDispatch } from '@/pages/DataStudio/LeftContainer/BtnContext';
import {
......@@ -26,10 +25,7 @@ import {
JOB_RIGHT_MENU
} from '@/pages/DataStudio/LeftContainer/Project/constants';
import FolderModal from '@/pages/DataStudio/LeftContainer/Project/FolderModal';
import {
getBottomSelectKeyFromNodeClickJobType,
getRightSelectKeyFromNodeClickJobType
} from '@/pages/DataStudio/LeftContainer/Project/function';
import { getRightSelectKeyFromNodeClickJobType } from '@/pages/DataStudio/LeftContainer/Project/function';
import JobModal from '@/pages/DataStudio/LeftContainer/Project/JobModal';
import JobTree from '@/pages/DataStudio/LeftContainer/Project/JobTree';
import {
......@@ -39,7 +35,6 @@ import {
STUDIO_MODEL,
STUDIO_MODEL_ASYNC
} from '@/pages/DataStudio/model';
import { LeftBottomMoreTabs } from '@/pages/DataStudio/route';
import {
handleAddOrUpdate,
handleOption,
......@@ -149,14 +144,6 @@ const Project: React.FC = (props: connect) => {
type: STUDIO_MODEL.updateSelectRightKey,
payload: getRightSelectKeyFromNodeClickJobType(type)
});
const bottomKey = getBottomSelectKeyFromNodeClickJobType(type);
dispatch({ type: STUDIO_MODEL.updateSelectBottomKey, payload: bottomKey });
if (bottomKey === LeftBottomKey.TOOLS_KEY) {
dispatch({
type: STUDIO_MODEL.updateSelectBottomSubKey,
payload: LeftBottomMoreTabs[bottomKey][0].key
});
}
}
dispatch({
......
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