kkkkk 5 年之前
父節點
當前提交
21624efe71
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      global.js
  2. 1 1
      vue.config.js

+ 2 - 2
global.js

@@ -1,6 +1,6 @@
-const host = 'http://218.59.173.214:801/index/api';
+const host = 'http://localhost:801/index/api';
 const secret = '035c73f7-bb6b-4889-a715-d9eb2d1925cc';
-const baseMediaUrl='rtmp://218.59.173.214/';
+const baseMediaUrl='rtmp://localhost/';
 function genApiUrl(method){
 	return host+method+"?secret="+secret;
 }

+ 1 - 1
vue.config.js

@@ -2,7 +2,7 @@ module.exports = {
   devServer: {
     proxy: {
       '/bpi': {                                //   以'/bpi'开头的请求会被代理进行转发
-        target: 'http://localhost:801/index/api',       //   要发向的后台服务器地址  如果后台服务跑在后台开发人员的机器上,就写成 `http://ip:port` 如 `http:192.168.12.213:8081`   ip为后台服务器的ip
+        target: 'http://218.59.173.214:801/index/api',       //   要发向的后台服务器地址  如果后台服务跑在后台开发人员的机器上,就写成 `http://ip:port` 如 `http:192.168.12.213:8081`   ip为后台服务器的ip
         changeOrigin: true                     
       }
     }