开发: 添加eslint两个package

This commit is contained in:
zhengw
2023-04-24 13:43:36 +08:00
parent 570b28d81b
commit 0b850f4ef4
39 changed files with 163 additions and 141 deletions

View File

@@ -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() {