引用iview组件之 [did you register the component correctly] 错误

错误原因
没有引用iview模块就进行了iview组件的使用,导致如下错误

Unknown custom element: <Row> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

解决方法

main.js 中添加 iview的引用
import Vue from 'vue'
import App from './App'
import router from './router'
import iView from 'iview'
Vue.config.productionTip = false
Vue.use(iView)

版权声明:本文为qq_18144905原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。