vue 报错error: 'to' is defined but never used (no-unused-vars)

解决方法1:
在.eslintrc.js文件内加入如下代码:

rules: {
"no-console": "off",
"no-unused-vars":"off", //重要 var 变量为引入
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
},

你可能感兴趣的:(vue 报错error: 'to' is defined but never used (no-unused-vars))