Skip to content

Commit

Permalink
chore: replace version request
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Nov 18, 2024
1 parent b7535d4 commit c779a2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions site/web/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, []);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c779a2b

Please sign in to comment.