Skip to content

Commit 5aa0878

Browse files
authored
fix: Banner中的资源失效 (#195)
* feat: 使用0.7.9的@antv/dumi-theme-antv能运行 * feat: 首页UI基本完成 * feat: 首页UI兼容 * feat: 使用beta版主题包 * chore: 修复tsc问题 * fix: 修复CR意见 * chore: 修复构建问题 * chore: 修复tsc问题 * chore: 修复tsc问题 * fix: 宽度自适应 * fix: 宽度自适应 * fix: 正确使用对应环境的地址 * fix: 重复菜单
1 parent e0f8782 commit 5aa0878

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

.dumirc.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ export default defineConfig({
8484
},
8585
order: 4,
8686
},
87-
{
88-
slug: 'specification/module/infoCom',
89-
title: {
90-
zh: '信息组件 Info Component',
91-
en: 'Info Componen',
92-
},
93-
order: 6,
94-
},
9587
{
9688
slug: 'specification/tool',
9789
title: {

site/components/Banner/Banner.tsx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useIntl, useLocale } from 'dumi';
22
import React, { useEffect, useState } from 'react';
3-
import { ActiveIcon } from '../common';
43
import { ANCHORNAME } from '../ProjectCard';
4+
import { getBaseSiteDataUrl } from '@antv/dumi-theme-antv/dist/utils/env';
55

66
import styles from './Banner.module.less';
77
import { HomeDialog } from '@antv/dumi-theme-antv/dist/components/AI/HomeDialog';
@@ -20,7 +20,7 @@ export default () => {
2020
};
2121

2222
useEffect(() => {
23-
fetch('https://site-data-pre.alipay.com/antv/banner-messages.json')
23+
fetch(`${getBaseSiteDataUrl()}/antv/banner-messages.json`)
2424
.then((res) => res.json())
2525
.then((data) => {
2626
setMessage(data);
@@ -77,19 +77,6 @@ export default () => {
7777
promptTextareaStyle={{margin: "0 auto", width: "40vw", minWidth: "300px"}}
7878
recommendCaseClassName={styles.listContainer}
7979
style={{margin: "270px auto", width: "unset"}}/>
80-
{/*<div className={styles.buttons}>*/}
81-
{/* <div className={styles.start} onClick={scrollToAnchor}>*/}
82-
{/* <div className={styles.startIcon} />*/}
83-
{/* {useT('开始使用')}*/}
84-
{/* </div>*/}
85-
{/* <ActiveIcon*/}
86-
{/* href="/specification/principles/basic"*/}
87-
{/* className={styles.design}*/}
88-
{/* img="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_xFsQbWE_AYAAAAAAAAAAAAADmJ7AQ/original"*/}
89-
{/* activeImg="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*A9VnTpferioAAAAAAAAAAAAADmJ7AQ/original"*/}
90-
{/* text={useT('设计语言')}*/}
91-
{/* />*/}
92-
{/*</div>*/}
9380
<div className={styles.bottom}>
9481
{message.map(({ title, subTitle, img, link }) => {
9582
return (

0 commit comments

Comments
 (0)