Vue踩過的坑

2021-09-14 03:35:19 字數 746 閱讀 9154

vue檔案縮排問題,嚴格縮排,如果需要四個字元的縮排請修改為,當然造成這個的結果是,建立檔案的時候

use eslint to lint your code?這句話就是告訴你是不是要給你管理**縮排,選擇no就完事了,啥事沒有

下面是.eslintrc.js的**,如果你選擇了yes的話就修改下面這段**吧最主要的是

overrides: [

}

// 

module.exports = ,

env: ,

extends: [

// // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.

'plugin:vue/essential',

// 'standard'

],// required to lint *.vue files

plugins: [

'vue'

],// add your custom rules here

rules: ],

// allow debugger during development

'no-debugger': process.env.node_env === 'production' ? 'error' : 'off'

},overrides: [

}]}

Vue專案踩過的坑

vue cli vue腳手架 的好處就在於使用 vue ui在vue的ui上直接配置依賴 安裝外掛程式 啟動服務。很舒適。如果你發現安裝總失敗 大概率vue.js或者node.js版本不行。echarts官網直接搞個example下來放在mounted 鉤子函式中用是沒問題的。但是你會發現在elem...

Vue使用ESLint踩過的坑

1 missing space before value for key methods methods的值之前要有空格2 missing space before opening brace 開始的 大括號之前缺少空格3 missing space before function parenthe...

vue那些年踩過的坑

那些年踩過的坑 module not found module not found error can t resolve views coverconfigurationrong in d new operation admin src js router 原因 寫好路由之後,新建資料夾目錄,但是...