Open miguanxiong opened 5 years ago
我添加了两个文件修改了一处代码可以尝试 (1) .eslintrc.js
module.exports = {
root: true,
'extends': [
'plugin:vue/essential',
'@vue/standard'
],
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/no-parsing-error': [2, { 'x-invalid-end-tag': false }],
'no-undef': 'off',
'camelcase': 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
(2) .babelrc
{
"presets": [
"@vue/app"
]
}
(3)修改了一处代码 webapp\vue.config.js
productionSourceMap: false 下面添加如下代码
css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项
less: {
javascriptEnabled: true
}
}
}
执行 npm install && npm run dev
这个在ivew-admin中已经解决,在webapp目录添加 ![Uploading 图片.png…]()