fix: Logo 字段路径修正 data.official_website_logo
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
try {
|
try {
|
||||||
var res = JSON.parse(xhr.responseText);
|
var res = JSON.parse(xhr.responseText);
|
||||||
var cfg = res.data || res;
|
var cfg = res.data || res;
|
||||||
var logoUrl = cfg.site_config && cfg.site_config.official_website_logo;
|
var logoUrl = cfg.official_website_logo || (cfg.site_config && cfg.site_config.official_website_logo);
|
||||||
if (logoUrl) logoEl.src = logoUrl;
|
if (logoUrl) logoEl.src = logoUrl;
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user