diff --git a/lua/app/ui/main_city/component/dungeon_comp.lua b/lua/app/ui/main_city/component/dungeon_comp.lua index 192883ae..847cb46e 100644 --- a/lua/app/ui/main_city/component/dungeon_comp.lua +++ b/lua/app/ui/main_city/component/dungeon_comp.lua @@ -35,7 +35,6 @@ function DungeonComp:init() self.scrollRectComp:addRefreshCallback(function(index, cell) cell:refresh(self.openDungeons[index]) end) - self.scrollRectComp:clearCells() self.scrollRectComp:setTotalCount(0) self:refreshShow() end @@ -45,12 +44,8 @@ function DungeonComp:refreshShow() Logger.logHighlight("更新副本显示."..tostring(Time:getTodaySurplusTime())) end self.openDungeons = DataManager.DungeonData:getOpenDungeons() - if self.scrollRectComp:getTotalCount() ~= #self.openDungeons then - self.scrollRectComp:clearCells() - self.scrollRectComp:refillCells(#self.openDungeons) - else - self.scrollRectComp:updateAllCell() - end + self.scrollRectComp:clearCells() + self.scrollRectComp:refillCells(#self.openDungeons) -- 跨天定时器 if self.countdownSid then