Commit 21325641 authored by wenmo's avatar wenmo

修复数据预览特殊条件下无法获取数据的bug

parent 045fca96
......@@ -28,7 +28,7 @@ const Chart = (props:any) => {
const toRebuild = () => {
if(!isSql(current.task.dialect)){
showJobData(current.console.result.jobId,dispatch);
showJobData(current.key,current.console.result.jobId,dispatch);
}
};
......
......@@ -21,7 +21,7 @@ const StudioTable = (props: any) => {
};
const showDetail=()=>{
showJobData(current.console.result.jobId,dispatch)
showJobData(current.key,current.console.result.jobId,dispatch)
};
const renderFlinkSQLContent = () => {
......
import {getJobData} from "@/pages/FlinkSqlStudio/service";
export function showJobData(jobId:string,dispatch:any) {
export function showJobData(key: number,jobId: string,dispatch: any) {
if(!jobId){
return;
}
......@@ -8,7 +8,10 @@ export function showJobData(jobId:string,dispatch:any) {
res.then((result)=>{
dispatch&&dispatch({
type: "Studio/saveResult",
payload: result.datas,
payload: {
key,
datas: result.datas
},
});
});
}
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