chore: remove and replace log with info

This commit is contained in:
Tristan Yang
2022-09-01 18:34:59 +08:00
parent ffbdc212f7
commit 3247de57db
36 changed files with 37 additions and 77 deletions
+1 -2
View File
@@ -80,7 +80,7 @@ const FileMessage: FC<Props> = ({
setUploadingFile(false);
} catch (error) {
setUploadingFile(false);
console.log("fetch local file error", error);
console.error("fetch local file error", error);
}
};
// local file
@@ -93,7 +93,6 @@ const FileMessage: FC<Props> = ({
const propsV2 = imageSize ? { ...props, ...imageSize } : props;
// 本地文件 并且上传成功
if (uploadSuccess && isLocalFile(content)) {
console.log("send local file message", uploadSuccess, propsV2, data, content);
// 把已经上传的东西当做消息发出去
const { path } = data;
sendMessage({