Skip to content

Commit

Permalink
chore: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Feb 16, 2024
1 parent ffff244 commit d9740e0
Show file tree
Hide file tree
Showing 3 changed files with 1,564 additions and 1,539 deletions.
10 changes: 5 additions & 5 deletions mock/listTableList.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request, Response } from 'express';

Check failure on line 1 in mock/listTableList.ts

View workflow job for this annotation

GitHub Actions / build (16.x, macOS-latest)

File name '/Users/runner/work/ant-design-pro/ant-design-pro/node_modules/dayjs/index.d.ts' differs from already included file name '/users/runner/work/ant-design-pro/ant-design-pro/node_modules/dayjs/index.d.ts' only in casing.
import moment from 'moment';
import dayjs from 'dayjs';
import { parse } from 'url';

// mock tableListDataSource
Expand All @@ -21,8 +21,8 @@ const genList = (current: number, pageSize: number) => {
desc: '这是一段描述',
callNo: Math.floor(Math.random() * 1000),
status: Math.floor(Math.random() * 10) % 4,
updatedAt: moment().format('YYYY-MM-DD'),
createdAt: moment().format('YYYY-MM-DD'),
updatedAt: dayjs().format('YYYY-MM-DD'),
createdAt: dayjs().format('YYYY-MM-DD'),
progress: Math.ceil(Math.random() * 100),
});
}
Expand Down Expand Up @@ -134,8 +134,8 @@ function postRule(req: Request, res: Response, u: string, b: Request) {
desc,
callNo: Math.floor(Math.random() * 1000),
status: Math.floor(Math.random() * 10) % 2,
updatedAt: moment().format('YYYY-MM-DD'),
createdAt: moment().format('YYYY-MM-DD'),
updatedAt: dayjs().format('YYYY-MM-DD'),
createdAt: dayjs().format('YYYY-MM-DD'),
progress: Math.ceil(Math.random() * 100),
};
tableListDataSource.unshift(newRule);
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
"antd": "^5.13.2",
"antd-style": "^3.6.1",
"classnames": "^2.5.1",
"lodash": "^4.17.21",
"moment": "^2.30.1",
"omit.js": "^2.0.2",
"querystring": "^0.2.1",
"rc-menu": "^9.12.4",
Expand Down
Loading

0 comments on commit d9740e0

Please sign in to comment.