diff --git a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerPanel.lua b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerPanel.lua index 42a8fdc040..4352add84b 100644 --- a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerPanel.lua @@ -151,9 +151,14 @@ function JumpServerPanel:UpdateCarbonContent() local live = Util.GetGameObject(v, "bg/carbon/Live") local name = Util.GetGameObject(v, "bg/carbon/Name") local timeReset = Util.GetGameObject(v, "bg/InfoBg/timeReset") - live:GetComponent("Image").sprite = self.spLoader:LoadSprite(data.live) - live:GetComponent("RectTransform").localPosition = data.livePos - live:GetComponent("RectTransform").sizeDelta = data.liveSize + if data.live and data.live ~= "" then + live:GetComponent("Image").sprite = self.spLoader:LoadSprite(data.live) + live:GetComponent("RectTransform").localPosition = data.livePos + live:GetComponent("RectTransform").sizeDelta = data.liveSize + live:SetActive(true) + else + live:SetActive(false) + end name:GetComponent("Image").sprite = self.spLoader:LoadSprite(data.name) timeReset:GetComponent("Text").text = string.format(data.resetTime) self:SystemState(data.id,function()