You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
404 B

import * as CookiesJs from 'js-cookie';
export const Cookies = {
get(key?: any) {
return CookiesJs.default.get(key) || sessionStorage.getItem(key);
},
set(key: any, value: string, params?: Recordable) {
CookiesJs.default.set(key, value);
return sessionStorage.setItem(key, value);
},
remove(key: any) {
CookiesJs.default.remove(key);
sessionStorage.removeItem(key);
},
};