在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ vue 組件中內(nèi)容不顯示

vue 組件中內(nèi)容不顯示

router代碼:
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>
回答
編輯回答
耍太極

router的path值寫錯了,找不到這個路徑,導(dǎo)致組件內(nèi)容無法掛載.

2018年2月22日 10:14
編輯回答
祈歡

。。。。 你在頁面

    import componentsB from '@/components/xxx'
    components: {
        componentsB
    }
2017年5月3日 17:42
編輯回答
囍槑

你引用vue了嗎,你new vue實例了嗎

2017年6月24日 13:11
編輯回答
忠妾

你掛載了嗎,

2018年2月23日 19:26