keytops-game-framework 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2438,7 +2438,7 @@ class RemoteConfigStore {
|
|
|
2438
2438
|
const configKey = this.getConfigKey(configClass);
|
|
2439
2439
|
if (!this._snapshots[configKey]) {
|
|
2440
2440
|
const config = this._registry.create(configClass);
|
|
2441
|
-
const persisted = storage.getGValue(this.getStorageKey(configClass),
|
|
2441
|
+
const persisted = storage.getGValue(this.getStorageKey(configClass), {});
|
|
2442
2442
|
// 首次读取时先构造默认对象,再把本地持久化内容 merge 回来,保证未请求时也能正常工作。
|
|
2443
2443
|
this._snapshots[configKey] = persisted ? config.merge(config, persisted) : config;
|
|
2444
2444
|
}
|