原文:解決vue項目報錯:Failed to mount component: template or render function not defined.

頁面這么寫的: 問題出在router里定義路由的時候這么寫: 看似沒有問題,但是我在 pages monitoring 目錄下,既有monitoring.vue,又有monitoring.js,不補全文件后綴的話會找不對文件,所以就報錯了 ...

2020-07-23 15:28 0 30490 推薦指數:

查看詳情

Failed to mount component: template or render function not defined.

在公司下班前提交的代碼,夜晚回家pull一把,運行卻報錯Failed to mount component: template or render function not defined. 百度翻譯:無法安裝組件:模板或渲染功能未定義。 什么原因呢?百度了一大圈,有的說需要修改配置文件 ...

Tue Nov 03 06:56:00 CST 2020 0 2963
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM