开发: 添加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,6 +1,6 @@
import { SignalFilled } from '@ant-design/icons';
import { Modal } from 'antd';
import { useEffect, useState } from 'react';
import React, { useEffect, useState } from 'react';
import { IChatItem } from '../ChatLogsType';
import styles from './index.module.scss';
@@ -13,7 +13,9 @@ export const ChatVote: React.FC<IChatItem> = (props) => {
try {
const msg = JSON.parse(props.chat?.content as string);
setVoteitem(msg?.voteitem);
} catch (e) {}
} catch (e) {
/* empty */
}
}, [props.chat]);
function content() {
@@ -70,7 +72,9 @@ export const ChatVote: React.FC<IChatItem> = (props) => {
</Modal>
</>
);
} catch (e) {}
} catch (e) {
/* empty */
}
return (
<div style={{ display: 'flex', color: '#000', flexDirection: 'column' }}>