修正:保留比价记录侧边栏交互
手机号和用户名仅调整为蓝色文本,继续沿用整行点击打开比价记录侧边栏,不再跳转用户详情页。
This commit is contained in:
@@ -8,7 +8,6 @@ import {
|
||||
} from 'antd';
|
||||
import type { ColumnsType } from 'antd/es/table';
|
||||
import dayjs, { type Dayjs } from 'dayjs';
|
||||
import Link from 'next/link';
|
||||
import { api, errMsg } from '@/lib/api';
|
||||
import { formatWallTime, yuan } from '@/lib/format';
|
||||
import type {
|
||||
@@ -238,14 +237,10 @@ export default function ComparisonRecordsPage() {
|
||||
key: 'user',
|
||||
width: 140,
|
||||
render: (_, r) => (
|
||||
<Link
|
||||
href={`/users/${r.user_id}`}
|
||||
onClick={(event) => event.stopPropagation()}
|
||||
style={{ display: 'inline-block', color: '#1677ff' }}
|
||||
>
|
||||
<div style={{ color: '#1677ff' }}>
|
||||
<div>{r.phone || `#${r.user_id}`}</div>
|
||||
{r.nickname && <div style={{ fontSize: 12 }}>{r.nickname}</div>}
|
||||
</Link>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{ title: '状态', dataIndex: 'status', width: 72, render: (s: string) => <Tag color={STATUS_COLOR[s]}>{STATUS_LABEL[s] || s}</Tag> },
|
||||
|
||||
Reference in New Issue
Block a user