优化:回复评论
This commit is contained in:
@@ -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)}>
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user