解决已知问题

This commit is contained in:
宇阳
2024-08-18 23:08:18 +08:00
parent 39c90638b0
commit 22318d2e36
3 changed files with 3 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ const DropdownMessage = () => {
// 获取评论列表
const getCommentList = async () => {
const { data } = await getCommentListAPI("list")
const { data } = await getCommentListAPI({ pattern: "list" })
// 根据时间排序:最新时间在前
const sortedData = (data as Comment[]).sort((a, b) => +b.createTime - +a.createTime);
setCommentList(sortedData as Comment[])

View File

@@ -1,7 +1,6 @@
import { useState } from 'react';
import { Link } from 'react-router-dom';
import ClickOutside from '../ClickOutside';
import UserOne from '../../images/user/user-01.png';
import { useUserStore } from '@/stores'
@@ -20,7 +19,7 @@ const DropdownUser = () => {
<span className="block text-sm font-medium text-black dark:text-white">
{store.user?.name}
</span>
<span className="block text-xs">{store.user?.role}</span>
<span className="block text-xs">{store.role.name}</span>
</span>
<span className="overflow-hidden h-12 w-12 rounded-full">

View File

@@ -73,7 +73,7 @@ const TagPage = () => {
<Title value="标签管理" />
<div className='flex justify-between mx-auto mt-2'>
<Card className="w-[40%] h-73">
<Card className="w-[40%] h-48">
<Form
form={form}
layout="vertical"