优化:支持控制是否显示

This commit is contained in:
iqudoo
2026-04-30 11:17:05 +08:00
parent 8ebe8b0b34
commit f3c0856506
11 changed files with 142 additions and 26 deletions

View File

@@ -13,11 +13,13 @@ export function getVersion() {
}
export function getConfig(key) {
let item = _customConfig[key];
if (!item) {
item = _defConfig[key];
if (Object.prototype.hasOwnProperty.call(_customConfig, key)) {
return _customConfig[key];
}
return item;
if (Object.prototype.hasOwnProperty.call(_defConfig, key)) {
return _defConfig[key];
}
return undefined;
}
export function setConfig(config) {