开发: 添加eslint两个package
This commit is contained in:
@@ -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' }}>
|
||||
|
Reference in New Issue
Block a user