解决已知问题
This commit is contained in:
@@ -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[])
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user