Vue TypeScript uses vue-property-decorator to prompt router-view that it is not registered

<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>
<script lang="ts">
import { Vue, Component } from "vue-property-decorator"

@Component
export default class extends Vue {
}
</script>

if I use the above method, I will report an error after running

Unknown custom element: <router-view> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

and there is no $router and $route on the vue object

if I remove

@Component

can be used normally. How can I use it correctly? @ Component

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-49adbeb-10ca8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-49adbeb-10ca8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?