Skip to content

Commit dd6f5e2

Browse files
committed
refactor: 调整表格列对齐方式和更新通知信息
- 移除文章摘要和标签列的对齐设置,以提升表格的可读性。 - 更新恢复文章成功的通知信息,改为使用“恢复文章成功”以增强用户体验。
1 parent 242f8fe commit dd6f5e2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/pages/article/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export default () => {
122122
title: '摘要',
123123
dataIndex: 'description',
124124
key: 'description',
125-
align: 'center',
126125
width: 350,
127126
render: (text: string) => <div className="line-clamp-2">{text ? text : '该文章暂未设置文章摘要'}</div>,
128127
},
@@ -142,7 +141,6 @@ export default () => {
142141
title: '标签',
143142
dataIndex: 'tagList',
144143
key: 'tagList',
145-
align: 'center',
146144
render: (tags: ArticleTag[]) =>
147145
tags.map((item, index) => (
148146
<Tag key={item.id} color={colors[index]}>

src/pages/decycle/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default () => {
6363
setLoading(true);
6464

6565
await reductionArticleDataAPI(id);
66-
notification.success({ message: '🎉 还原文章成功' });
66+
notification.success({ message: '🎉 恢复文章成功' });
6767
navigate('/article');
6868

6969
setLoading(false);

0 commit comments

Comments
 (0)