diff --git a/src/pages/Comment/index.tsx b/src/pages/Comment/index.tsx index 6cb6f81..2e96cba 100644 --- a/src/pages/Comment/index.tsx +++ b/src/pages/Comment/index.tsx @@ -1,6 +1,6 @@ import { useState, useEffect } from 'react'; import { Card, message, Table, Popconfirm, Button, Modal, Form, Input, DatePicker } from 'antd'; -import { addCommentDataAPI, getCommentListAPI } from '@/api/Comment'; +import { addCommentDataAPI, getCommentDataAPI, getCommentListAPI } from '@/api/Comment'; import { delCommentDataAPI } from '@/api/Comment'; import { ColumnsType } from 'antd/es/table'; import { titleSty } from '@/styles/sty'; @@ -144,17 +144,6 @@ const CommentPage = () => { setIsReplyModalOpen(false) setReplyInfo("") getCommentList() - - // 发送邮件通知 - await sendCommentEmailAPI({ - content: comment.content, - reviewers: comment.name, - subject: comment.articleTitle!, - title: comment.articleTitle!, - url: location.href, - time: dayjs(Date.now()).format('YYYY年MM月DD日 HH:mm'), - to: comment.id !== comment.articleId ? comment.email : undefined - }) } return ( @@ -225,3 +214,4 @@ const CommentPage = () => { }; export default CommentPage; + diff --git a/src/utils/request.ts b/src/utils/request.ts index 501f032..2251db8 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -3,8 +3,8 @@ import { Modal, notification } from "antd"; import { useUserStore } from "@/stores"; // 配置项目API域名 -// export const baseURL = "http://localhost:9003/api"; -export const baseURL = "https://api.liuyuyang.net/api"; +export const baseURL = "http://localhost:9003/api"; +// export const baseURL = "https://api.liuyuyang.net/api"; // 创建 axios 实例 export const instance = axios.create({