From 2b938efed12cc6fae5d4393b559d02ab8b376b7e Mon Sep 17 00:00:00 2001 From: zjy <3161362058@qq.com> Date: Fri, 3 Jan 2025 17:50:11 +0800 Subject: [PATCH] img no-referrer --- frontend/providers/cronjob/src/utils/json2Yaml.ts | 2 -- .../providers/template/src/pages/deploy/components/ReadMe.tsx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/providers/cronjob/src/utils/json2Yaml.ts b/frontend/providers/cronjob/src/utils/json2Yaml.ts index d8bca5e51f1..5191bc741a4 100644 --- a/frontend/providers/cronjob/src/utils/json2Yaml.ts +++ b/frontend/providers/cronjob/src/utils/json2Yaml.ts @@ -6,8 +6,6 @@ import { cronJobKey } from '@/constants/keys'; import useEnvStore from '@/store/env'; export const json2CronJob = (data: CronJobEditType) => { - console.log(data, 123); - const timeZone = getUserTimeZone(); const kcHeader = encodeURIComponent(getUserKubeConfig()); const { applaunchpadUrl, successfulJobsHistoryLimit, failedJobsHistoryLimit } = diff --git a/frontend/providers/template/src/pages/deploy/components/ReadMe.tsx b/frontend/providers/template/src/pages/deploy/components/ReadMe.tsx index 6af570d31f1..c586290a509 100644 --- a/frontend/providers/template/src/pages/deploy/components/ReadMe.tsx +++ b/frontend/providers/template/src/pages/deploy/components/ReadMe.tsx @@ -14,7 +14,7 @@ const ReadMe = ({ readUrl, readmeContent }: { readUrl: string; readmeContent: st if (node.tagName === 'img' && !node.properties.src.startsWith('http')) { const imgSrc = node.properties.src.replace(/^\.\/|^\//, ''); const baseUrl = readUrl?.substring(0, readUrl?.lastIndexOf('/') + 1); - console.log(baseUrl, imgSrc); + node.properties.referrerPolicy = 'no-referrer'; node.properties.src = `${baseUrl}${imgSrc}`; } };