【登录】修复logo为空时显示默认logo的问题

dev_chengFeng
gaoxin 2021-06-16 20:38:42 +08:00
parent 4f28f777b9
commit b8f9d894d9
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function this:InitComponent()
-- logo
this.logo = Util.GetGameObject(this.gameObject, "logo"):GetComponent("Image")
this.logoStr = PackageManager.GetLoginPanelLogo()
if this.logoStr then
if this.logoStr and this.logoStr ~= "" then
LoadStreamingTexture(this.spLoader, this.logoStr, function(sp)
this.logo.gameObject:SetActive(true)
this.logo.sprite = sp