1
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user