error The "Video" component has

2020-10-20  本文已影响0人  吴wuwu

报错意思是:Video 已注册 未使用

检查报错:

1. 导入要使用的组件

import Video from '../../components/index/Video'

2. 在 components 里面注册该组件

components: {

            Video

        }

3. 最后在模板 tamplete 中使用

<template>

  <div id="video-list">

            <video />

            // <video></video>

</div>

</template>

然后运行就报错组件已注册未使用。

解决报错:

<video />首字母改为大写<Video />

运行,没有报错了,但是其他的组件都是小写的就可以,不知道为什么

上一篇 下一篇

猜你喜欢

热点阅读