开发: 添加eslint两个package
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Modal } from 'antd';
|
||||
import { useEffect, useState } from 'react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { IChatItem } from '../ChatLogsType';
|
||||
import { EmojiFormat } from './EmojiFormat';
|
||||
|
||||
@@ -45,7 +45,9 @@ export const ChatRecord: React.FC<IChatItem> = (props) => {
|
||||
try {
|
||||
const msg = JSON.parse(props.chat?.content as string);
|
||||
setRecord(msg);
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
/* empty */
|
||||
}
|
||||
}, [props.chat]);
|
||||
|
||||
function content() {
|
||||
|
Reference in New Issue
Block a user