* Modify the code logic.

This commit is contained in:
tianshujie
2022-03-04 10:02:52 +08:00
parent 35d1bc80dd
commit b8adb47787
+2 -4
View File
@@ -51,11 +51,9 @@ function loadList(type, id)
}
nameBoxLabel = typeof(nameBoxLabel) == "undefined" ? '' : nameBoxLabel;
if(nameBoxLabel)
if(typeof(nameBoxLabel) != "undefined")
{
vision = typeof(vision) == "undefined" ? '' : vision;
if(type == 'custom' || (vision && vision == 'rnd'))
if(type == 'custom' || (typeof(vision) != "undefined" && vision == 'rnd'))
{
$('#nameBoxLabel').text(nameBoxLabel.custom);
}