From 5d2fdc577364c55c72fc449dd61dd9734bd718cd Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Fri, 14 Jan 2022 18:47:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=99=E7=BC=98=E6=B1=87=E8=81=9A?= =?UTF-8?q?=E7=AE=B1=E3=80=91=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua index 8360ffd011..3a48a65a6c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/GeneralPopup.lua @@ -173,7 +173,11 @@ end function GeneralPopup:OnShow() if index == GENERAL_POPUP_TYPE.RecruitBox then--临时接的参数 需要onshow刷新的调用 - contentScripts[index].view:OnShow(this,unpack(onOpenArgs, 1, table.maxn(onOpenArgs))) + if onOpenArgs then + contentScripts[index].view:OnShow(this,unpack(onOpenArgs, 1, table.maxn(onOpenArgs))) + else + contentScripts[index].view:OnShow(this) + end end this.backBtn:SetActive(index ~= GENERAL_POPUP_TYPE.SheJiCheckGuild) end