剛開始打開vue項目的時候會發現vue代碼報紅,解決方式如下
首先安裝Vetur和ESLint
打開文件》首選項》設置,配置如下代碼
{ "explorer.confirmDelete": false, "vetur.validation.template": false, "eslint.autoFixOnSave": true, "files.autoSave":"off", "eslint.validate": [ "javascript", "javascriptreact", "html", { "language": "vue", "autoFix": true } ], "eslint.options": { "plugins": ["html"] }, //為了符合eslint的兩個空格間隔原則 "editor.tabSize": 2 }
重新加載項目就行了
8月ECS限量搶,全場ECS 2折起,數量有限,先到先得,搶完為止。https://www.aliyun.com/