使用iview-admin-pro2.2.0做后台管理项目时,报错token.type.endsWith is not a function
报错内容如下
解决办法:
.eslintrc.js里面内容修改如下
module.exports = {
root: true,
env: {
node: true
},
extends: ['plugin:vue/essential', '@vue/standard'],
rules: {
semi: [0],
indent: ['off', 'tab', { SwitchCase: 1 }],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'space-before-function-paren': 'error',
'camelcase': 'off',
'semi-spacing': 'error',
'vue/no-parsing-error': [
2,
{
'x-invalid-end-tag': false
}
]
},
parserOptions: {
parser: 'babel-eslint'
}
} 作者:吾LOVE https://www.bilibili.com/read/cv14307421 出处:bilibili
本文暂时没有评论,来添加一个吧(●'◡'●)