Commit 38295bfd authored by cellee's avatar cellee

去除所有成功提示

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent 4a459f3b
......@@ -86,15 +86,15 @@ export default {
changeOrigin: true,
pathRewrite: { '^': '' },
},
'/tos/': {
target: 'http://47.74.233.180:8651',
changeOrigin: true,
pathRewrite: { '^': '' },
},
// '/tos/': {
// target: 'http://192.168.1.28:8651',
// target: 'http://47.74.233.180:8651',
// changeOrigin: true,
// pathRewrite: { '^': '' },
// },
'/tos/': {
target: 'http://192.168.1.28:8651',
changeOrigin: true,
pathRewrite: { '^': '' },
},
},
};
......@@ -73,7 +73,7 @@ const Account = (props: any) => {
if (SubResult != null) {
if (SubResult.statr == 0 && SubResult.desc == 0) {
// 保存成功, 清掉原来数据 并且跳转
message.success('Submitted Successfully !');
// message.success('Submitted Successfully !');
dispatch({ type: module + '/ReData' });
dispatch({ type: module + '/AccountClear' });
history.go(-1);
......@@ -390,7 +390,7 @@ const Account = (props: any) => {
// 监听改变状态提交结果
useEffect(() => {
if (Result != null) {
message.success('Successful Operation !');
// message.success('Successful Operation !');
setOver(false);
// 清除结果
dispatch({ type: 'Account/ResultClear' });
......
......@@ -83,7 +83,7 @@ const Account = (props: any) => {
if (SubResult != null) {
if (SubResult.statr == 0 && SubResult.desc == 0) {
// 保存成功, 清掉原来数据 并且跳转
message.success('Submitted Successfully !');
// message.success('Submitted Successfully !');
dispatch({ type: module + '/ReData' });
dispatch({ type: module + '/AccountClear' });
setLoading(true);
......
......@@ -110,7 +110,7 @@ const Adds = (props: any) => {
dispatch({ type: 'Init/addCommunityget', playload: { Result: new Array(Result.data) } });
}
// 提示跳转
message.success(`Information saved successfully!`);
// message.success(`Information saved successfully!`);
history.push('/CommunityManagement/CellList');
}
}, [Result, Data]);
......@@ -223,7 +223,7 @@ const Adds = (props: any) => {
// 上传提示
function uploadMsg(file: any) {
if (file.status === 'done') {
message.success(`${file.name} File Uploaded Successfully`);
// message.success(`${file.name} File Uploaded Successfully`);
} else if (file.status === 'error') {
message.error(`${file.name} File Upload Failed.`);
}
......
......@@ -191,7 +191,7 @@ const Adds = (props: any) => {
// 上传提示
function uploadMsg(file: any) {
if (file.status === 'done') {
message.success(`${file.name} File Uploaded Successfully`);
// message.success(`${file.name} File Uploaded Successfully`);
} else if (file.status === 'error') {
message.error(`${file.name} File Upload Failed.`);
}
......
......@@ -94,7 +94,7 @@ const Add = (props: any) => {
};
// 把内容存进去
SA(DetailPage(page), module, dispatch);
message.success('Released Successfully');
// message.success('Released Successfully');
history.push('/CommunityManagement/CommunityAnnouncement');
}
}, [Result]);
......
......@@ -141,7 +141,7 @@ const ContractContent = (props: any) => {
});
if (file.status == 'done') {
message.success(file.name, 3);
// message.success(file.name, 3);
}
},
};
......
/*
* @Author: your name
* @Date: 2021-01-25 11:17:37
* @LastEditTime: 2021-02-06 11:06:32
* @LastEditors: your name
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\UserManagement\LIFEUserManagement\ResultPageFailed.tsx
*/
import React, { useState, useEffect } from 'react';
import { Result, Button, message } from 'antd';
......@@ -21,7 +29,7 @@ const ResultPageFailed = () => {
if (flag) {
setFlag(false);
} else {
message.success('The file has been downloaded successfully');
// message.success('The file has been downloaded successfully');
}
};
......
......@@ -56,7 +56,7 @@ const AccoutingContent = (props: {
dispatch({ type: 'ServiceProvider/ResultClear' });
setLoading(false);
if (Result) {
message.success('Logout successful!');
// message.success('Logout successful!');
history.goBack();
} else {
message.error('Logout failed. Please try again!');
......@@ -73,7 +73,7 @@ const AccoutingContent = (props: {
const copyStatus = document.execCommand('Copy'); // 执行copy操作
// 对成功与否定进行提示
if (copyStatus) {
message.success('URL copy successfully!');
// message.success('URL copy successfully!');
} else {
message.error('Copy Failure,Please copy manually');
}
......
......@@ -106,7 +106,7 @@ const Detail = (props: any) => {
dispatch({ type: 'ServiceProvider/ResultClear' });
setLoding(false);
if (Result) {
message.success('Logout successful!');
// message.success('Logout successful!');
history.goBack();
} else {
message.error('Logout failed. Please try again!', 3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment