hasKey doesn't work
Tusko opened this issue · comments
Tusko Trush commented
vue-web-storage/src/storage.js
Line 60 in eacce99
I have a problem with hasKey
method
http://cl.ly/c4286b58284d
Ankur K commented
How are you using this package?
Can you share the package installation and configuration code?
Ankur K commented
Your screenshot says that hasKey
method is not available on undefined.
Tusko Trush commented
In app.js
(main Vue file added the code:
import Storage from 'vue-web-storage';
Vue.use(Storage);
Vue.use(Storage, {
prefix: 'm_admin_',
drivers: ['session','local'],
});
Tried to use Vue.$localStorage
and this.$localStorage
.
The first and second methods are undefined
(checked using a debugger).
Ankur K commented
I could not re-produce the issue, check
https://codesandbox.io/s/w7ov5728yk
Some thing is wrong with your code.