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