error - element - Unknown custom element: <el-upload> - did you register the component correctl
cdn 引入
- Unknown custom element:
- did you register the component correctly? For recursive components, make sure to provide the "name" option.
// 报错
<script src="./lib/element-ui/element.js"></script>
<script src="./lib/vue.js"></script>
// 修改
<script src="./lib/vue.js"></script>
<script src="./lib/element-ui/element.js"></script>
Lee2