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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user