(fix)(supersonic-fe) show tip when register failed and replace icon when login failed and fix metric style issue (#2160)

This commit is contained in:
williamhliu
2025-03-12 08:22:46 +08:00
committed by GitHub
parent b7369abcca
commit f05a4b523c
4 changed files with 337 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { Form, Button, Modal, Input } from 'antd';
import { Form, Button, Modal, Input, message } from 'antd';
import type { RegisterFormDetail } from './types';
@@ -37,8 +37,9 @@ const RegisterForm: React.FC<RegisterFormProps> = (props) => {
try {
await handleUpdate(formValus);
setSaveLoading(false);
} catch (error) {
} catch (error: any) {
setSaveLoading(false);
message.error(error.message);
}
};