From c779a2bc7d1bba2a1080c6fbb1b529832310116e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Mon, 18 Nov 2024 16:26:50 +0800 Subject: [PATCH] chore: replace version request --- site/web/App.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site/web/App.jsx b/site/web/App.jsx index 151698e3..931a25ec 100644 --- a/site/web/App.jsx +++ b/site/web/App.jsx @@ -8,7 +8,8 @@ const LazyDemo = lazy(() => import('./Demo')); const { docs: routerList } = JSON.parse(JSON.stringify(siteConfig).replace(/component:.+/g, '')); -const registryUrl = 'https://mirrors.tencent.com/npm/tdesign-mobile-react'; +const registryUrl = + 'https://service-edbzjd6y-1257786608.hk.apigw.tencentcs.com/release/npm/versions/tdesign-mobile-react'; const currentVersion = packageJson.version.replace(/\./g, '_'); const docRoutes = getRoute(siteConfig.docs, []); @@ -75,7 +76,7 @@ function Components() { requestAnimationFrame(() => { const isComponent = /\/components\//.test(detail); tdDocContentRef.current.mobileBodyStyle = { - paddingRight: isComponent ? '400px' : "" + paddingRight: isComponent ? '400px' : '', }; tdDocContentRef.current.pageStatus = 'show'; window.scrollTo(0, 0);