這是vetur中eslint的問題,在vscode菜單中,文件->首選項->設置
找到 “vetur.validation.template”: 將√去掉,如圖所示,就可關閉eslint的檢查,錯誤消失