解决已知问题

This commit is contained in:
宇阳
2024-10-12 13:15:31 +08:00
parent 95adc6b7d3
commit 798e501d8c
2 changed files with 10 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ const PublishForm = ({ data, closeModel }: { data: Article, closeModel: () => vo
const getCateList = async () => {
const { data } = await getCateListAPI()
setCateList(data as Cate[])
setCateList(data.filter(item=>item.type === "cate") as Cate[])
}
const getTagList = async () => {

View File

@@ -1,14 +1,16 @@
import { Button, Card, Drawer, Dropdown, MenuProps, message } from 'antd';
import { BiSave } from "react-icons/bi";
import VditorEditor from './components/VditorMD';
import PublishForm from './components/PublishForm';
import { useEffect, useState } from 'react';
import { useSearchParams } from 'react-router-dom';
import { Button, Card, Drawer, Dropdown, MenuProps, message } from 'antd';
import Title from '@/components/Title';
import VditorEditor from './components/VditorMD';
import PublishForm from './components/PublishForm';
import { Article } from '@/types/app/article';
import { getArticleDataAPI } from '@/api/Article'
import { useSearchParams } from 'react-router-dom';
import { BiSave } from "react-icons/bi";
import { GrFormNext } from "react-icons/gr";
const CreatePage = () => {
const [params] = useSearchParams()
@@ -138,7 +140,7 @@ const CreatePage = () => {
</Button>
<Button type="primary" className='w-full flex justify-between' onClick={nextBtn} >
<BiSave className='text-base' />
<GrFormNext className='text-2xl' />
</Button>
</div>