mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 10:47:08 +08:00
优化视频资源选择的分类总是加载
This commit is contained in:
parent
1fd4f20ab0
commit
983b8c39bd
@ -17,7 +17,6 @@ interface PropInterface {
|
||||
|
||||
export const TreeCategory = (props: PropInterface) => {
|
||||
const [treeData, setTreeData] = useState<any>([]);
|
||||
const [loading, setLoading] = useState<boolean>(true);
|
||||
const [selectKey, setSelectKey] = useState<number[]>([]);
|
||||
const resourceCategories = useSelector(
|
||||
(state: any) => state.systemConfig.value.resourceCategories
|
||||
|
@ -159,15 +159,7 @@ export const UploadVideoSub = (props: PropsInterface) => {
|
||||
<>
|
||||
<Row style={{ width: 752, minHeight: 520 }}>
|
||||
<Col span={7}>
|
||||
{init && (
|
||||
<div className="float-left text-center mt-30">
|
||||
<Spin></Spin>
|
||||
</div>
|
||||
)}
|
||||
<div
|
||||
className="float-left"
|
||||
style={{ display: init ? "none" : "block" }}
|
||||
>
|
||||
<div className="float-left">
|
||||
<TreeCategory
|
||||
selected={[]}
|
||||
type="no-cate"
|
||||
|
Loading…
x
Reference in New Issue
Block a user