From 9bb9db55d7eccb1d1a7a33a9ee1efb4c7c98664f Mon Sep 17 00:00:00 2001 From: scottsut Date: Thu, 24 Aug 2023 09:40:05 +0800 Subject: [PATCH] fix: Base URL of plugin charts --- frontend/src/app/utils/fetch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/utils/fetch.ts b/frontend/src/app/utils/fetch.ts index 7b696b173..e99f3c3d2 100644 --- a/frontend/src/app/utils/fetch.ts +++ b/frontend/src/app/utils/fetch.ts @@ -30,7 +30,7 @@ import { transformToViewConfig, } from 'app/utils/internalChartHelper'; import { saveAs } from 'file-saver'; -import { PUBLIC_URL } from 'globalConstants'; +import { BASE_RESOURCE_URL } from 'globalConstants'; import i18next from 'i18next'; import qs from 'qs'; import { request2, requestWithHeader } from 'utils/request'; @@ -251,7 +251,7 @@ export async function downloadFile(id) { export async function fetchPluginChart(path) { const result = await request2(path, { - baseURL: PUBLIC_URL, + baseURL: BASE_RESOURCE_URL, headers: { Accept: 'application/javascript' }, }).catch(error => { console.error(error);