1๐
You have to scope your css from the index.vue
page to the other pages with the scoped
directive (see docs https://vue-loader.vuejs.org/guide/scoped-css.html)
<style scoped>
/* local styles */
</style>
<style>
/* global styles */
</style>
You can add your global CSS in your layouts/default.vue
file.
-1๐
This solved the issue โ
methods: {
onSubmit() {
window.location = 'http://localhost:3000/jobs?q=' + this.form.keyword;
}
},
- [Vuejs]-Vue JS โ Changing data in created() and conditional rendering
- [Vuejs]-Make file available in chrome from vue project in VS Code
Source:stackexchange.com