vue引入导航守卫报错error: 'to' is defined but never used (no-unused-vars) 解决方法: 在package.json文件内加入如下代码:
"rules": {
"generator-star-spacing": "off",
"no-tabs":"off",
"no-unused-vars":"off",
"no-console":"off",
"no-irregular-whitespace":"off",
"no-debugger": "off"
},