优化:回复评论

This commit is contained in:
Liu 宇阳
2024-11-18 15:05:14 +08:00
parent 7a7305e0bf
commit e2519c0170
3 changed files with 12 additions and 9 deletions

View File

@@ -191,12 +191,15 @@ const CommentPage = () => {
<Modal title='评论详情' open={isCommentModalOpen} onCancel={() => setIsCommentModalOpen(false)} footer={null}>
<div className='pt-2 space-y-2'>
<div><b></b> {comment?.articleTitle}</div>
<div><b></b> {dayjs(comment?.createTime).format("YYYY-MM-DD HH:mm:ss")}</div>
<div><b></b> {dayjs(+comment?.createTime!).format("YYYY-MM-DD HH:mm:ss")}</div>
<div><b></b> {comment?.name}</div>
<div><b></b> {comment?.email ? comment?.email : "暂无邮箱"}</div>
<div><b></b> {comment?.url ? <a href={comment?.url} className="hover:text-primary">{comment?.url}</a> : '无网站'}</div>
<div><b></b> {comment?.content}</div>
</div>
<Button type='primary' onClick={() => setIsReplyModalOpen(true)} className='w-full mt-4'></Button>
</Modal>
<Modal title="回复评论" open={isReplyModalOpen} footer={null} onCancel={() => setIsReplyModalOpen(false)}>

View File

@@ -1,4 +1,4 @@
import { Button, Form, Input, message, Spin } from "antd"
import { Button, Form, Input, message } from "antd"
import { editOtherDataAPI, getOtherDataAPI } from "@/api/Project";
import { useEffect, useState } from "react";

View File

@@ -47,12 +47,12 @@ const SetupPage = () => {
icon: <BiUser className={iconSty} />,
key: "my"
},
{
title: "其他设置",
description: "杂七八乱的各种配置",
icon: <AiOutlineSetting className={iconSty} />,
key: "other"
}
// {
// title: "其他设置",
// description: "杂七八乱的各种配置",
// icon: <AiOutlineSetting className={iconSty} />,
// key: "other"
// }
];
return (
@@ -82,7 +82,7 @@ const SetupPage = () => {
{active === "web" && <Web />}
{active === "layout" && <Layout />}
{active === "my" && <My />}
{active === "other" && <Other />}
{/* {active === "other" && <Other />} */}
</div>
</div>
</Card>