Skip to content

Commit 0ea9bb9

Browse files
committed
chore: fix bug
1 parent a631d1e commit 0ea9bb9

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"react-router-dom": "^6.27.0"
1717
},
1818
"devDependencies": {
19+
"@types/node": "^20.0.0",
1920
"@types/react": "^18.2.47",
2021
"@types/react-dom": "^18.2.18",
2122
"@vitejs/plugin-react": "^4.3.3",

pnpm-lock.yaml

Lines changed: 21 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/ErrorRate/filters/FilterBar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ export function FilterBar({ value, onChange }: Props) {
3434
]}
3535
/>
3636
{value.period === 'custom' && (
37-
<DatePicker.RangePicker
37+
<DatePicker
38+
type="dateRange"
3839
style={{ width: 260 }}
39-
onChange={(v) => onChange({ ...value, dateRange: v ? [v[0]?.toString()!, v[1]?.toString()!] : null })}
40+
onChange={(v: any) => onChange({ ...value, dateRange: v ? [v[0]?.toString()!, v[1]?.toString()!] : null })}
4041
/>
4142
)}
4243
<Select

src/pages/Login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function LoginPage() {
4040
<>
4141
<Form.Input field="username" label="用户名" placeholder="请输入" rules={[{ required: true, message: '必填' }]} />
4242
<Form.Input mode="password" field="password" label="密码" placeholder="请输入" rules={[{ required: true, message: '必填' }]} />
43-
<Button block theme="solid" type="primary" htmlType="submit" loading={loading} disabled={formState.isSubmitting}>
43+
<Button block theme="solid" type="primary" htmlType="submit" loading={loading} disabled={loading}>
4444
登录
4545
</Button>
4646
</>

0 commit comments

Comments
 (0)