Skip to content

Commit

Permalink
fix: 修复问题
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft authored and jianbing.chen committed Dec 18, 2024
1 parent 9dd9041 commit 1449617
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@
}

.tagBug {
background-color: #cd201f;
background-color: #f50;
color: #fff;
}

.tagAdvise {
background-color: #2f4f8b;
background-color: #2db7f5;
color: #fff;
}

.tagOther {
background-color: #006df8;
background-color: #108ee9;
color: #fff;
}

Expand Down
10 changes: 8 additions & 2 deletions packages/editor/src/pages/feedback/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,22 @@ const FeedbackIndex: React.FC = () => {
{
key: '0',
label: '全部',
color: '#2db7f5',
},
{
key: '1',
label: 'BUG',
color: '#f50',
},
{
key: '2',
label: '建议',
color: '#2db7f5',
},
{
key: '3',
label: '其他',
color: '#108ee9',
},
{
key: '4',
Expand Down Expand Up @@ -192,8 +196,10 @@ const FeedbackIndex: React.FC = () => {
<div className={style.middleContent}>
<div className={style.itemTitle}>{item.title}</div>
<Space size={[0, 8]} wrap>
{item.isTop === 1 ? <Tag color="#f50">置顶</Tag> : null}
<Tag color="#2db7f5">{tabs.find((tab) => Number(tab.key) === item.type)?.label}</Tag>
{item.isTop === 1 ? <Tag color="var(--mars-primary-color)">置顶</Tag> : null}
<Tag color={tabs.find((tab) => Number(tab.key) === item.type)?.color}>
{tabs.find((tab) => Number(tab.key) === item.type)?.label}
</Tag>
{item.isSolve === 1 && (
<Tag color="success">{item.type === 1 ? '已解决' : item.type === 2 ? '已采纳' : item.type === 4 ? '已关闭' : '已处理'}</Tag>
)}
Expand Down

0 comments on commit 1449617

Please sign in to comment.