Add vue-storage package

This commit is contained in:
Bubka
2020-11-26 20:39:15 +01:00
parent 8a9731c219
commit 3a96c689fb
4 changed files with 19 additions and 0 deletions

1
resources/js/app.js vendored
View File

@@ -1,5 +1,6 @@
import Vue from 'vue'
import mixins from './mixins'
import VueStorage from './packages/vue-storage'
import router from './routes'
import api from './api'
import i18n from './langs/i18n'

9
resources/js/packages/vue-storage.js vendored Normal file
View File

@@ -0,0 +1,9 @@
import Vue from 'vue'
import VueStorage from 'vue2-storage'
// You can specify the plug-in configuration when connecting, passing the second object to Vue.use
Vue.use(VueStorage, {
prefix: '',
driver: 'local',
ttl: 60 * 60 * 24 * 1000 * 122 // 4 month
})