關於vue使用:瀏覽器報錯:Unknown custom element:

關於vue使用:瀏覽器報錯:Unknown custom element: vsCode運行成功: 但實際運行時導入的ElementUI無效,導致瀏覽器報錯: 原因:由於編寫main.js時將Vue.use(ElementUI)寫至最底端而導致報錯: 錯誤示例: 只需將Vue.use(ElementUI)放至import後即可:
相關文章
相關標籤/搜索