1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- export function addLocalUser(value) {
- window.localStorage.setItem('LJ@2B#CMS!User', JSON.stringify(value));
- }
- export function getLocalUser() {
- const localUser = window.localStorage.getItem('LJ@2B#CMS!User');
- if (localUser && localUser !== 'undefined') {
- return JSON.parse(localUser);
- }
- }
- export function getLocalToken() {
- const localUser = window.localStorage.getItem('LJ@2B#CMS!User');
- if (localUser && localUser !== 'undefined') {
- return JSON.parse(localUser).token;
- }
- }
- export function saveLocalSignature(value) {
- window.localStorage.setItem('LJ@2B#CMS!OSS', JSON.stringify(value));
- }
- export function getLocalSignature() {
- const signature = window.localStorage.getItem('LJ@2B#CMS!OSS');
- if (signature && signature !== 'undefined') {
- return JSON.parse(signature);
- }
- }
|