forked from 77media/video-flow
小问题
This commit is contained in:
parent
db7debaa52
commit
088ccc7ccd
@ -96,7 +96,7 @@ CharacterTabContentProps
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('-==========roleData===========-', roleData);
|
console.log('-==========roleData===========-', roleData);
|
||||||
// 只在初始化且有角色数据时执行
|
// 只在初始化且有角色数据时执行
|
||||||
if (!isInitialized && roleData.length > 0) {
|
if (!isInitialized && (roleData?.length || 0) > 0) {
|
||||||
selectRole(roleData[0]);
|
selectRole(roleData[0]);
|
||||||
setIsInitialized(true);
|
setIsInitialized(true);
|
||||||
}
|
}
|
||||||
@ -391,7 +391,7 @@ CharacterTabContentProps
|
|||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
<FloatingGlassPanel
|
<FloatingGlassPanel
|
||||||
open={isReplacePanelOpen}
|
open={isReplacePanelOpen}
|
||||||
@ -455,4 +455,4 @@ CharacterTabContentProps
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
CharacterTabContent.displayName = 'CharacterTabContent';
|
CharacterTabContent.displayName = 'CharacterTabContent';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user