puzhibing
6 天以前 0db8c9b94a9ac655549d5eba5c2a6c92ac386c06
laboratory/vue.config.js
@@ -11,7 +11,7 @@
    proxy: {
      "/": {
        // 设置以什么前缀开头的请求用来代理
        target: "http://192.168.110.34:11221", //要访问的跨域的域名
        target: "http://192.168.1.2:11221", //要访问的跨域的域名
        secure: false, // 使用的是http协议则设置为false,https协议则设置为true
        changeOrigin: true, //开启代理
        pathRewrite: {
@@ -19,7 +19,7 @@
        },
      },
      "/": { // 设置以什么前缀开头的请求用来代理
          target: "http://192.168.110.34:11221", //要访问的跨域的域名
          target: "http://192.168.1.2:11221", //要访问的跨域的域名
          secure: false, // 使用的是http协议则设置为false,https协议则设置为true
          changeOrigin: true, //开启代理
          pathRewrite: {