mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-19 09:51:35 +02:00
Add vue-storage package
This commit is contained in:
1
resources/js/app.js
vendored
1
resources/js/app.js
vendored
@@ -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
9
resources/js/packages/vue-storage.js
vendored
Normal 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
|
||||
})
|
Reference in New Issue
Block a user