diff --git a/src/pages/Wall/index.tsx b/src/pages/Wall/index.tsx index f5ab772..b992c8d 100644 --- a/src/pages/Wall/index.tsx +++ b/src/pages/Wall/index.tsx @@ -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} }, - { - title: '邮箱', - dataIndex: 'email', - key: 'email', - render: (text: string) => text ? text : '暂无邮箱', - }, { title: '留言时间', dataIndex: 'createTime', diff --git a/src/utils/request.ts b/src/utils/request.ts index 2251db8..501f032 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({