import getAdapter from '../../utils/adaptive' ; const adapter = getAdapter ( ) ; export default class Storage { public setItem ( key , value ) { adapter . setStorage ( { key , data : value } ) ; } public getItem ( key ) { return adapter . getStorageSync ( key ) ; } }