Proxy error: Could not proxy request /login from localhost:8090 to http://:8089.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENOTFOUND).

检查vue.config.js文件
修改target:标签

  devServer: {
    port: 8090,
    // host: '192.168.1.101',
    https: false,
    hotOnly: false,
    proxy: {
      '/api': {
        // login-Post地址
        target: 'http://localhost:8089',
        changeOrigin: true,
        secure: false,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
Logo

前往低代码交流专区

更多推荐