0👍
userAgent.match()
will return an Array type. Then in beforeCreate
hook you’re checking if those consts are strings, but they are arrays possibly carrying those strings inside them. You also perform similar checks in the created
hook. That is probably why your statements never execute.
- [Vuejs]-How do I remove a Quasar q-input prop on button click?
- [Vuejs]-I can't upload image files from .vue to my database
Source:stackexchange.com