mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-26 10:14:19 +08:00
(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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user