This commit is contained in:
宇阳
2024-10-17 16:34:53 +08:00
parent dbad8712d6
commit 3fcd17fbff
2 changed files with 2 additions and 10 deletions

View File

@@ -17,8 +17,6 @@ const WallPage = () => {
const getWallList = async () => {
const { data } = await getWallListAPI();
// 根据时间排序:最新时间在前
// const sortedData = (data as Wall[]).sort((a, b) => +b.createTime - +a.createTime);
setList(data)
setLoading(false)
}
@@ -72,12 +70,6 @@ const WallPage = () => {
setIsModalOpen(true)
}}>{text}</span>
},
{
title: '邮箱',
dataIndex: 'email',
key: 'email',
render: (text: string) => text ? text : '暂无邮箱',
},
{
title: '留言时间',
dataIndex: 'createTime',

View File

@@ -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({