The content in the vue component is not displayed

router Code:
import TestPage from"@ / page/testPage"

{
        path: "/tastPage",
        component: TestPage
}
<template>
    <div class="testPage">
        testPage
    </div>
</template>

<script>
    export default {
        name: "testPage",
        data () {
            return {
                
            }
        }
    }
</script>

<style scoped>

</style>
Apr.03,2021

have you mounted it,


have you referenced vue, have you new vue instance


. You are on the page

    import componentsB from '@/components/xxx'
    components: {
        componentsB
    }
The path value of

router was miswritten and the path could not be found, resulting in the component content not being mounted.

Menu