A vue plugin for use localStorage and cookie to store data. The feature
- Not only compatible localstorage and cookie, but for browser private model.
- Safety to write data on same domain.
import VueStore from '../../assets/libs/js/vue-store'
Vue.use(VueStore, 'fatman')
var obj = {
name: 'Aslse',
age: '23'
}
window.$localStore.set('testobj', JSON.stringify(obj))
let me = this
me.$localStore.set('testobj', JSON.stringify(obj))