Skip to content

Commit 3b53190

Browse files
committed
remove useless code
1 parent 0f89064 commit 3b53190

File tree

5 files changed

+2
-18
lines changed

5 files changed

+2
-18
lines changed

src/__mocks__/api.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { getUrlParams } from './utils';
21

32
const titles = [
43
'Alipay',

src/__mocks__/index.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,13 @@ import { Mock } from 'react-fetch-mock';
33
import { getRule, postRule } from './rule';
44
import { getActivities, getNotice, getFakeList } from './api';
55
import { getFakeChartData } from './chart';
6-
import { imgMap } from './utils';
76
import { getProfileBasicData } from './profile';
87
import { getProfileAdvancedData } from './profile';
98
import { getNotices } from './notices';
109

1110
export default {
1211
// 支持值为 Object 和 Array
1312
'GET /api/currentUser': () => {
14-
// $desc: "获取当前用户接口",
15-
// $params: {
16-
// pageSize: {
17-
// desc: '分页',
18-
// exp: 2,
19-
// },
20-
// },
21-
// $body: {
22-
// name: 'momo.zxy',
23-
// avatar: imgMap.user,
24-
// userid: '00000001',
25-
// notifyCount: 12,
26-
// },
2713
return {
2814
name: 'Serati Ma',
2915
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/eHBsAsOrrJcnvFlnzNTT.png',

src/__mocks__/rule.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { getUrlParams } from './utils';
21

32
// mock tableListDataSource
43
let tableListDataSource = [];

src/routes/List/CardList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class CardList extends PureComponent {
6666
<Card hoverable className={styles.card} actions={[<a>操作一</a>, <a>操作二</a>]}>
6767
<Card.Meta
6868
avatar={<img alt="" className={styles.cardAvatar} src={item.avatar} />}
69-
title={<a href="#">{item.title}</a>}
69+
title={<a href="">{item.title}</a>}
7070
description={(
7171
<Ellipsis className={styles.item} lines={3}>{item.description}</Ellipsis>
7272
)}

src/routes/List/Projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default class CoverCardList extends PureComponent {
6363
cover={<img alt={item.title} src={item.cover} height={154} />}
6464
>
6565
<Card.Meta
66-
title={<a href="#">{item.title}</a>}
66+
title={<a href="">{item.title}</a>}
6767
description={item.subDescription}
6868
/>
6969
<div className={styles.cardItemContent}>

0 commit comments

Comments
 (0)