diff --git a/component/pear/modules/context.js b/component/pear/modules/context.js index dbb1436..aaaa893 100644 --- a/component/pear/modules/context.js +++ b/component/pear/modules/context.js @@ -14,7 +14,7 @@ layui.define(['jquery', 'element'], function(exports) { localStorage.setItem(key,value); } - this.get = function(){ + this.get = function(key){ return localStorage.getItem(key); } }