<template>
<router-link to="/">HelloWorld</router-link> |
<router-link to="/home">home</router-link> |
<router-view></router-view>
</template>
<script setup lang="ts">
</script>
<style scoped>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
解决办法:
找到 ESlint 配置项中的 rules
,加入"vue/multi-word-component-names":0