- {current.console&¤t.console.result.jobId?
+ {current.console&¤t.console.result.success?
(<>
-
}>
- 获取最新数据
-
+ {current.task.dialect === DIALECT.FLINKSQL ?
+ (
):undefined
+ }
{result.rowData&&result.columns?
@@ -82,6 +83,12 @@ const StudioMenu = (props: any) => {
type: "Studio/saveTabs",
payload: newTabs,
});
+ if(current.task.dialect === DIALECT.SQL){
+ dispatch && dispatch({
+ type: "Studio/saveResult",
+ payload: res.datas.result,
+ });
+ }
useSession && showTables(currentSession.session, dispatch);
})
};
diff --git a/dlink-web/src/components/Studio/StudioRightTool/StudioSetting/index.tsx b/dlink-web/src/components/Studio/StudioRightTool/StudioSetting/index.tsx
index 1b01428478..14fe3629d1 100644
--- a/dlink-web/src/components/Studio/StudioRightTool/StudioSetting/index.tsx
+++ b/dlink-web/src/components/Studio/StudioRightTool/StudioSetting/index.tsx
@@ -7,7 +7,7 @@ import {useEffect} from "react";
import {showTables} from "@/components/Studio/StudioEvent/DDL";
import {JarStateType} from "@/pages/Jar/model";
import {Scrollbars} from "react-custom-scrollbars";
-import {RUN_MODE} from "@/components/Studio/StudioRightTool/StudioSetting/conf";
+import {RUN_MODE} from "@/components/Studio/conf";
const {Option} = Select;
const {Text} = Typography;
@@ -124,7 +124,6 @@ const StudioSetting = (props: any) => {
) : (