biz9-logic 3.5.31 → 3.5.33
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/biz9_config +1 -1
- package/index.js +11 -8
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -396,17 +396,20 @@ class Schedule {
|
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
398
|
class Storage {
|
|
399
|
-
static
|
|
400
|
-
|
|
399
|
+
static KEY_ADMIN="key_admin";
|
|
400
|
+
static KEY_USER="key_user";
|
|
401
|
+
static KEY_GUEST="key_guest";
|
|
402
|
+
static get = (window,key) => {
|
|
403
|
+
return window.localStorage.getItem(JSON.parse(key));
|
|
401
404
|
}
|
|
402
|
-
static set = (key,
|
|
403
|
-
localStorage.setItem(key,
|
|
405
|
+
static set = (window,key,obj) => {
|
|
406
|
+
window.localStorage.setItem(key,JSON.stringify(obj));
|
|
404
407
|
}
|
|
405
|
-
static remove = (key) =>{
|
|
406
|
-
localStorage.removeItem(key);
|
|
408
|
+
static remove = (window,key) =>{
|
|
409
|
+
window.localStorage.removeItem(key);
|
|
407
410
|
}
|
|
408
|
-
static clear = () =>{
|
|
409
|
-
localStorage.clear();
|
|
411
|
+
static clear = (window) =>{
|
|
412
|
+
window.localStorage.clear();
|
|
410
413
|
}
|
|
411
414
|
}
|
|
412
415
|
module.exports = {
|