diff --git a/service/license/src/components/Signin/index.tsx b/service/license/src/components/Signin/index.tsx index 03436873379..4c48472e207 100644 --- a/service/license/src/components/Signin/index.tsx +++ b/service/license/src/components/Signin/index.tsx @@ -93,9 +93,13 @@ export default function SigninComponent() { if (isAgree && selectedConfig) { const { login } = selectedConfig; login(); - uploadConvertData([3]).then((res) => { - console.log(res); - }); + uploadConvertData([3]) + .then((res) => { + console.log(res); + }) + .catch((err) => { + console.log(err); + }); } else { setIsInvalid(true); showError(t('Read and agree')); diff --git a/service/license/src/components/signin/index.tsx b/service/license/src/components/signin/index.tsx index 03436873379..4c48472e207 100644 --- a/service/license/src/components/signin/index.tsx +++ b/service/license/src/components/signin/index.tsx @@ -93,9 +93,13 @@ export default function SigninComponent() { if (isAgree && selectedConfig) { const { login } = selectedConfig; login(); - uploadConvertData([3]).then((res) => { - console.log(res); - }); + uploadConvertData([3]) + .then((res) => { + console.log(res); + }) + .catch((err) => { + console.log(err); + }); } else { setIsInvalid(true); showError(t('Read and agree')); diff --git a/service/license/src/pages/cluster/components/Tutorial.tsx b/service/license/src/pages/cluster/components/Tutorial.tsx index 598f1ac3c72..7b513c63264 100644 --- a/service/license/src/pages/cluster/components/Tutorial.tsx +++ b/service/license/src/pages/cluster/components/Tutorial.tsx @@ -31,7 +31,6 @@ export default function Tutorial({ let { fileNameParams, bashParams, ossVersion } = useMemo(() => { if (ossFileUrl) { let match = /cloud-(.*?)\.tar/g.exec(ossFileUrl); - console.log(match); return { fileNameParams: ossFileUrl.replace('/cloud/', ''), bashParams: match ? `--cloud-version=${match[1]}` : '--cloud-version v5.0.0-beta1', @@ -102,9 +101,7 @@ export default function Tutorial({ fontSize={'14px'} fontWeight={600} onClick={() => - window.open( - 'https://sealos.io/zh-Hans/docs/self-hosting/installation#%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C' - ) + window.open('https://sealos.io/zh-Hans/docs/self-hosting/sealos/installation') } > 详细文档 @@ -172,7 +169,7 @@ export default function Tutorial({
- window.open( - 'https://sealos.io/zh-Hans/docs/self-hosting/installation#%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4' - ) + window.open('https://sealos.io/zh-Hans/docs/self-hosting/sealos/installation') } > 详细文档