浏览代码

添加遗留

tangdehang 3 月之前
父节点
当前提交
130cac024c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      static/rtcEngine/js/logReport.js

+ 1 - 1
static/rtcEngine/js/logReport.js

@@ -254,7 +254,7 @@ export default class LogReport {
   // 日志记录上报 字符串日志上报
   // 日志记录上报 字符串日志上报
   report() {
   report() {
     this.logs.forEach(() => {
     this.logs.forEach(() => {
-      this.$Request.post(this.URL_API + this.URL_ADDRESS, { ...this.logs.shift() })
+      this.$Request.post(this.URL_API[location.protocol] + this.URL_ADDRESS, { ...this.logs.shift() })
       .then(res => {
       .then(res => {
         console.log('日志上报成功', res);
         console.log('日志上报成功', res);
       });
       });