Skip to content

Commit

Permalink
mod: productName style for CN (vesoft-inc#476)
Browse files Browse the repository at this point in the history
fix: ngql file path for CDN
  • Loading branch information
huaxiabuluo authored Feb 22, 2023
1 parent dc4fc62 commit c4eeeb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/pages/Welcome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function Welcome(props: IProps) {
message.error(intl.get('welcome.spaceExist', { space: space.spaceName }));
return;
}
const gql = await fetch(`${process.env.CDN_PATH || ''}/datasets/${space.fileName}.ngql`).then((r) => r.text());
const gql = await fetch(`${process.env.CDN_PATH || '/'}datasets/${space.fileName}.ngql`).then((r) => r.text());
setSpaceLoading({ spaceName: space.spaceName, leftTime: initLoadingTime, progressModalOpen: true });
const downloadRes = await service.execSeqNGQL({
gql: gql.replaceAll('\n', ''),
Expand Down Expand Up @@ -392,7 +392,7 @@ function Welcome(props: IProps) {
<Icon type="icon-studio-btn-close" className={styles.actionClose} onClick={closePageHandler} />
</div>
<h1 className={styles.welcomeLabel}>
{intl.get('doc.welcome')}&nbsp;<span>{product}</span>
{intl.get('doc.welcome')}&nbsp;<span style={{ fontWeight: 'bold' }}>{product}</span>
</h1>
</div>
<div className={styles.docBox}>
Expand Down

0 comments on commit c4eeeb8

Please sign in to comment.