Skip to content

Commit

Permalink
add vueCompilerOptions, add .prevent to click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalglowacz committed Mar 18, 2024
1 parent 511d86e commit 0534256
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"paths": {
"@/*": ["src/*"]
}
},
"vueCompilerOptions": {
"target": 2.7,
}
}
2 changes: 1 addition & 1 deletion src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
<h1 class="green">{{ msg }}</h1>
<h3>
You’ve successfully created a project with
<a @click="foo" target="_blank" href="https://vitejs.dev/">Vite</a> +
<a @click.prevent="foo" target="_blank" href="https://vitejs.dev/">Vite</a> +
<a target="_blank" href="https://v2.vuejs.org/">Vue 2</a>.
</h3>
</div>
Expand Down

0 comments on commit 0534256

Please sign in to comment.