解决已知问题
This commit is contained in:
6616
pnpm-lock.yaml
generated
Normal file
6616
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -30,21 +30,20 @@ export default () => {
|
||||
|
||||
const getCommentList = async () => {
|
||||
try {
|
||||
setLoading(true)
|
||||
const { data } = await getCommentListAPI();
|
||||
setList(data)
|
||||
setLoading(false)
|
||||
} catch (error) {
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
setLoading(false)
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
setLoading(true)
|
||||
getCommentList();
|
||||
}, []);
|
||||
|
||||
const columns: ColumnsType = [
|
||||
const columns: ColumnsType<Comment> = [
|
||||
{
|
||||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
@@ -61,7 +60,7 @@ export default () => {
|
||||
dataIndex: 'content',
|
||||
key: 'content',
|
||||
width: 400,
|
||||
render: (text: string, record) => <span className="hover:text-primary cursor-pointer line-clamp-2" onClick={() => {
|
||||
render: (text: string, record: Comment) => <span className="hover:text-primary cursor-pointer line-clamp-2" onClick={() => {
|
||||
setComment(record)
|
||||
setIsCommentModalOpen(true)
|
||||
}}>{text}</span>
|
||||
|
||||
@@ -106,9 +106,10 @@ export default () => {
|
||||
<div>
|
||||
<Title value="标签管理" />
|
||||
|
||||
<div className='flex md:justify-between flex-col md:flex-row mx-auto mt-2'>
|
||||
<Spin spinning={editLoading}>
|
||||
<Card className="w-full md:w-[40%] h-[calc(100vh-180px)]">
|
||||
<div className='flex md:justify-between flex-col md:flex-row mx-auto mt-2 h-[calc(100vh-180px)]'>
|
||||
<Spin spinning={editLoading} className='w-full md:w-[40%] '>
|
||||
{/* <Card className="w-full md:w-[40%] h-46"> */}
|
||||
<Card className="w-full h-46">
|
||||
<Form
|
||||
form={form}
|
||||
layout="vertical"
|
||||
|
||||
Reference in New Issue
Block a user