diff --git a/libs/utils.js b/libs/utils.js index 71a0f1fd..4f3d243c 100644 --- a/libs/utils.js +++ b/libs/utils.js @@ -230,7 +230,9 @@ utils.prototype.setLocalStorage = function (key, value) { ////// 获得本地存储 ////// utils.prototype.getLocalStorage = function (key, defaultValue) { try { - return JSON.parse(localStorage.getItem(core.firstData.name + "_" + key)); + var value = JSON.parse(localStorage.getItem(core.firstData.name + "_" + key)); + if (value == null) return defaultValue; + return value; } catch (e) { return defaultValue; } diff --git a/启动服务.exe b/启动服务.exe index 5234a1e9..95cfac40 100644 Binary files a/启动服务.exe and b/启动服务.exe differ