|
|
@@ -104,7 +104,7 @@ const Home: React.FC = () => {
|
|
|
setLoading(true);
|
|
|
try {
|
|
|
const result = await fetchLogin({
|
|
|
- username: 'test',
|
|
|
+ account: 'test',
|
|
|
password: '123456',
|
|
|
captchaId: 'test-captcha',
|
|
|
captchaCode: '1234',
|
|
|
@@ -222,7 +222,8 @@ const Home: React.FC = () => {
|
|
|
openDialog({
|
|
|
icon: infoIcon,
|
|
|
title: 'Important Notice',
|
|
|
- content: 'This dialog cannot be closed by clicking the mask. You must click the button to close it.',
|
|
|
+ content:
|
|
|
+ 'This dialog cannot be closed by clicking the mask. You must click the button to close it.',
|
|
|
maskClosable: false,
|
|
|
buttons: [
|
|
|
{
|
|
|
@@ -248,7 +249,8 @@ const Home: React.FC = () => {
|
|
|
openDialog({
|
|
|
icon: infoIcon,
|
|
|
title: 'Nested Dialog',
|
|
|
- content: 'This is a nested dialog opened from the first dialog. Notice how the z-index is automatically managed.',
|
|
|
+ content:
|
|
|
+ 'This is a nested dialog opened from the first dialog. Notice how the z-index is automatically managed.',
|
|
|
buttons: [
|
|
|
{
|
|
|
label: 'Close Nested',
|
|
|
@@ -318,7 +320,16 @@ const Home: React.FC = () => {
|
|
|
<Space wrap className="mt-4">
|
|
|
<Button
|
|
|
onClick={() => {
|
|
|
- const names = ['张三', '李四', '王五', '赵六', '钱七', '孙八', '周九', '吴十'];
|
|
|
+ const names = [
|
|
|
+ '张三',
|
|
|
+ '李四',
|
|
|
+ '王五',
|
|
|
+ '赵六',
|
|
|
+ '钱七',
|
|
|
+ '孙八',
|
|
|
+ '周九',
|
|
|
+ '吴十',
|
|
|
+ ];
|
|
|
const randomName = names[Math.floor(Math.random() * names.length)];
|
|
|
user.updateName(randomName);
|
|
|
}}
|