From 0db22f1a5d3a7fa0bec8cffc3a204d60bf3bcae5 Mon Sep 17 00:00:00 2001 From: liweijie0812 <674416404@qq.com> Date: Mon, 20 Jan 2025 16:59:12 +0800 Subject: [PATCH] chore: replace version request (#551) --- 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);