魏志佳 4 lat temu
rodzic
commit
cbfbfae2c0
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      vue.config.js

+ 2 - 2
vue.config.js

@@ -3,8 +3,8 @@ module.exports = {
         port: 3000,
         proxy: {
             "/api": {
-                target: 'http://192.168.0.230:8910', // 要访问的接口域名
-                // target: 'http://okr.c-top.com.cn', // 要访问的接口域名
+                // target: 'http://192.168.0.230:8910', // 要访问的接口域名
+                target: 'http://okr.c-top.com.cn', // 要访问的接口域名
                 ws: true, // 是否启用websockets
                 changeOrigin: true, //开启代理:在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
                 pathRewrite: {