更新启动服务
This commit is contained in:
parent
f3f6a6ff75
commit
575cd37ce3
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user