|
@@ -176,6 +176,7 @@ const ActivityManagement: React.FC = () => {
|
|
|
|
|
|
if (uploadData.success) {
|
|
|
setIconUrl(uploadData.url);
|
|
|
+ message.success('图标上传成功');
|
|
|
return {
|
|
|
status: 'done',
|
|
|
url: uploadData.url,
|
|
@@ -183,7 +184,7 @@ const ActivityManagement: React.FC = () => {
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.error('Upload error:', error);
|
|
|
- message.error(`上传失败: ${error.message}`);
|
|
|
+ message.error(`图标上传失败: ${error.message}`);
|
|
|
return {
|
|
|
status: 'error',
|
|
|
error: error.message,
|
|
@@ -247,14 +248,14 @@ const ActivityManagement: React.FC = () => {
|
|
|
name: 'file',
|
|
|
listType: 'picture-card',
|
|
|
}}
|
|
|
- onChange={(info) => {
|
|
|
- const { status } = info.file;
|
|
|
- if (status === 'done') {
|
|
|
- message.success('图标上传成功');
|
|
|
- } else if (status === 'error') {
|
|
|
- message.error('图标上传失败');
|
|
|
- }
|
|
|
- }}
|
|
|
+ // onChange={(info) => {
|
|
|
+ // const { status } = info.file;
|
|
|
+ // if (status === 'done') {
|
|
|
+ // message.success('图标上传成功');
|
|
|
+ // } else if (status === 'error') {
|
|
|
+ // message.error('图标上传失败');
|
|
|
+ // }
|
|
|
+ // }}
|
|
|
/>
|
|
|
<ProFormDigit name="order" label="排序" min={0} initialValue={0} />
|
|
|
<ProFormSwitch name="isActive" label="是否激活" initialValue={true} />
|