Unverified Commit 2892a8d0 authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Optimizing] Optimizing URLs to Constants (#3227)

parent 51fa7c17
...@@ -146,7 +146,7 @@ const Result = (props: any) => { ...@@ -146,7 +146,7 @@ const Result = (props: any) => {
if (historyData) { if (historyData) {
const historyId = historyData.id; const historyId = historyData.id;
const tableData = await handleGetOption( const tableData = await handleGetOption(
'api/studio/getJobData', API_CONSTANTS.GET_JOB_DATA,
l('global.getdata.tips'), l('global.getdata.tips'),
{ {
jobId: historyId jobId: historyId
...@@ -193,7 +193,7 @@ const Result = (props: any) => { ...@@ -193,7 +193,7 @@ const Result = (props: any) => {
const renderFlinkSQLContent = () => { const renderFlinkSQLContent = () => {
return ( return (
<> <>
{current.jobInstanceId ? ( {current?.jobInstanceId ? (
<> <>
<Space> <Space>
<Button <Button
......
...@@ -201,6 +201,7 @@ export enum API_CONSTANTS { ...@@ -201,6 +201,7 @@ export enum API_CONSTANTS {
GET_JOB_METRICS_ITEMS = '/api/jobInstance/getJobMetricsItems', GET_JOB_METRICS_ITEMS = '/api/jobInstance/getJobMetricsItems',
JOB_INSTANCE_GET_LINEAGE = '/api/jobInstance/getLineage', JOB_INSTANCE_GET_LINEAGE = '/api/jobInstance/getLineage',
GET_STATUS_COUNT = '/api/jobInstance/getStatusCount', GET_STATUS_COUNT = '/api/jobInstance/getStatusCount',
GET_JOB_DATA = '/api/studio/getJobData',
// ------------------------------------ devops studio ------------------------------------ // ------------------------------------ devops studio ------------------------------------
STUDIO_GET_LINEAGE = '/api/studio/getLineage', STUDIO_GET_LINEAGE = '/api/studio/getLineage',
......
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