优化视频资源选择的分类总是加载

This commit is contained in:
xxx 2023-09-24 08:23:43 +08:00
parent 1fd4f20ab0
commit 983b8c39bd
2 changed files with 1 additions and 10 deletions

View File

@ -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

View File

@ -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"