hyingbo
20 小时以前 92b53ccbfafdec9b5f27a0ec0a09ff051bdc6d21
vue.config.js
@@ -87,7 +87,7 @@
  devServer: {
    port: 3000,
    open:true,
    open: true,
    // hot: true,
    // disableHostCheck: true,
    // overlay: {
@@ -108,13 +108,10 @@
       },*/
      /* 注意:jeecgboot前端做了改造,此处不需要配置跨域和后台接口(只需要改.env相关配置文件即可)
          issues/3462 很多人此处做了配置,导致刷新前端404问题,请一定注意*/
      '/api': {
        target: 'http://127.0.0.1:9998',
      '/jeecg-boot': {
        target: 'http://localhost:9999', // 请求本地 需要jeecg-boot后台项目
        ws: false,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
        changeOrigin: true
      }
    }
  },