解决eslint代码检查:error ‘XXXXX‘ is not defined no-undef

在vue.config.js下添加lintOnSave: false

const {
    
     defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    
    
  lintOnSave: false,
  transpileDependencies: true,
  // 代理服务器
  devServer:{
    
    
    // 代理 配置代理访问java服务
    proxy:{
    
    
      //拦截自己发送的所有/web请求
      "/qy":{
    
    
        // 将请求转发给目标
        target:"http://localhost:8090/",
        //允许跨域
        changeOrigin:true,
        //重写url路径
        pathRewrite:{
    
    
          "/qy":"/qy"
        }
      }
    }
  }
})

猜你喜欢

转载自blog.csdn.net/qq_58647634/article/details/134236308