编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

iview pro项目报错token.type.endsWith is not a function

wxchong 2024-08-26 23:55:41 开源技术 8 ℃ 0 评论

使用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

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表