javascript - vue multiple component references
大家讲道理
大家讲道理 2017-05-19 10:17:42
0
1
394

<template>
<vhead></vhead>
<menu></menu>
</template>
<script>
import vhead from './head'
import menu from './nav'
export default {

name: 'home',
components: {vhead, menu}

}
</script>
<style>
html, body {

position: relative;
height: 100%;

}

body {

background-color: #e5e5e5;

}
</style>
Are multiple components introduced in this form? I keep getting errors here, I don’t know why

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
漂亮男人

You can see the longest line in the error message, which indicates that it needs to be wrapped in a root node

<p>
    <vhead></vhead>
    <menu></menu>
</p>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template