From a003b22ad44ea3d3e6773202c85b81ae8a14ba80 Mon Sep 17 00:00:00 2001 From: Fang Date: Thu, 15 Jun 2023 17:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=AF=E6=9C=AC=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/main_city/component/dungeon_comp.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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