mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 18:49:59 +08:00
fixed: 资源分类的数量
This commit is contained in:
@@ -30,6 +30,7 @@ export const ResourceVideosPage = () => {
|
||||
const [category_ids, setCategoryIds] = useState<any>([]);
|
||||
const [selLabel, setLabel] = useState<string>("全部视频");
|
||||
const [categoryCount, setCategoryCount] = useState<any>({});
|
||||
const [pureTotal, setPureTotal] = useState(0);
|
||||
|
||||
const columns: ColumnsType<DataType> = [
|
||||
// {
|
||||
@@ -129,6 +130,7 @@ export const ResourceVideosPage = () => {
|
||||
setVideoExtra(res.data.videos_extra);
|
||||
setAdminUsers(res.data.admin_users);
|
||||
setCategoryCount(res.data.category_count);
|
||||
setPureTotal(res.data.pure_total);
|
||||
setLoading(false);
|
||||
})
|
||||
.catch((err: any) => {
|
||||
@@ -167,6 +169,7 @@ export const ResourceVideosPage = () => {
|
||||
<div className="tree-main-body">
|
||||
<div className="left-box">
|
||||
<TreeCategory
|
||||
resourceTotal={pureTotal}
|
||||
text={"视频"}
|
||||
categoryCount={categoryCount}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
|
||||
Reference in New Issue
Block a user