1👍
That‘s because you only have one & in script which means the command before will be sent to the background. Try using && between the commands.
- [Vuejs]-Nuxt & Vue – Element UI Persisting active menu item on browser back button event
- [Vuejs]-Passing a Variable in vue.js Component Modal Window
Source:stackexchange.com