Match-id-cca500e53f98c38c092610cfe492c714e170bf7f

This commit is contained in:
* 2023-07-31 15:56:03 +08:00
parent b82f72d830
commit e3977d03a2
4 changed files with 11 additions and 49 deletions

View File

@ -87,45 +87,6 @@ function Dashboard() {
</Col>
</Row>
</Col>
{/* <Col lg={12} md={24}>
<Card bordered={false} {...bodyStyle}>
<RecentSales data={recentSales} />
</Card>
</Col> */}
{/* <Col lg={12} md={24}>
<Card bordered={false} {...bodyStyle}>
<ScrollBar>
<Comments data={comments} />
</ScrollBar>
</Card>
</Col> */}
{/* <Col lg={24} md={24}>
<Card
bordered={false}
bodyStyle={{
padding: '24px 36px 24px 0',
}}
>
<Completed data={completed} />
</Card>
</Col> */}
{/* <Col lg={8} md={24}>
<Card bordered={false} {...bodyStyle}>
<Browser data={browser} />
</Card>
</Col> */}
{/* <Col lg={8} md={24}>
<Card bordered={false} {...bodyStyle}>
<ScrollBar>
<Cpu {...cpu} />
</ScrollBar>
</Card>
</Col> */}
{/* <Col lg={8} md={24}>
<Card bordered={false} bodyStyle={{ ...bodyStyle.bodyStyle, padding: 0 }}>
<User {...user} avatar={avatar} username={username} />
</Card>
</Col> */}
</Row>
</Page>
);

View File

@ -23,14 +23,6 @@ function List({ onDeleteItem, onEditItem, ...tableProps }) {
};
const columns = [
{
title: <Trans>Avatar</Trans>,
dataIndex: 'avatar',
key: 'avatar',
width: '7%',
fixed: 'left',
render: text => <Avatar style={{ marginLeft: 8 }} src={text} />,
},
{
title: <Trans>Name</Trans>,
dataIndex: 'name',

View File

@ -22,7 +22,6 @@ function User({ location, history }) {
const handleRefresh = newQuery => {
const { search, pathname } = location;
const params = {
...parseSearch(search),
...newQuery,

View File

@ -163,6 +163,16 @@ export function setLocale(language) {
export function parseSearch(search) {
const searchObj = {};
search.replace(/([^?&=]+)=([^&]+)/g, (_, k, v) => (searchObj[k] = decodeURI(v)));
search.replace(/([^?&=]+)=([^&]+)/g, (_, k, v) => {
if (k === "address") {
if (searchObj[k]) {
searchObj[k].push(decodeURI(v));
} else {
searchObj[k] = [decodeURI(v)]
}
} else {
searchObj[k] = decodeURI(v)
}
});
return searchObj;
}