小调整

This commit is contained in:
Liu 宇阳
2024-10-21 20:17:05 +08:00
parent 327e19497b
commit 6ba2e93330
2 changed files with 4 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { Card, message, Table, Popconfirm, Button, Modal, Form, Input, DatePicker } from 'antd'; 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 { delCommentDataAPI } from '@/api/Comment';
import { ColumnsType } from 'antd/es/table'; import { ColumnsType } from 'antd/es/table';
import { titleSty } from '@/styles/sty'; import { titleSty } from '@/styles/sty';
@@ -144,17 +144,6 @@ const CommentPage = () => {
setIsReplyModalOpen(false) setIsReplyModalOpen(false)
setReplyInfo("") setReplyInfo("")
getCommentList() 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 ( return (
@@ -225,3 +214,4 @@ const CommentPage = () => {
}; };
export default CommentPage; export default CommentPage;

View File

@@ -3,8 +3,8 @@ import { Modal, notification } from "antd";
import { useUserStore } from "@/stores"; import { useUserStore } from "@/stores";
// 配置项目API域名 // 配置项目API域名
// export const baseURL = "http://localhost:9003/api"; export const baseURL = "http://localhost:9003/api";
export const baseURL = "https://api.liuyuyang.net/api"; // export const baseURL = "https://api.liuyuyang.net/api";
// 创建 axios 实例 // 创建 axios 实例
export const instance = axios.create({ export const instance = axios.create({