浏览代码

录音地址

seimin 1 年之前
父节点
当前提交
38b97bf3ad
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/app/views/call-log/call-log.component.html
  2. 1 1
      src/app/views/call-log/call-log.component.ts

+ 1 - 1
src/app/views/call-log/call-log.component.html

@@ -90,7 +90,7 @@
90 90
       </div>
91 91
       <div class="content audio">
92 92
         <audio controls style="outline: none;">
93
-          <source [src]="'http://'+audioPath" type="audio/wav">
93
+          <source [src]="audioPath" type="audio/wav">
94 94
         </audio>
95 95
       </div>
96 96
       <div class=" display_flex justify-content_flex-center">

+ 1 - 1
src/app/views/call-log/call-log.component.ts

@@ -105,7 +105,7 @@ export class CallLogComponent implements OnInit {
105 105
       this.maskFlag = false;
106 106
       this.modal = true;
107 107
       if (result["state"] == 200) {
108
-        this.audioPath = result["path"];
108
+        this.audioPath = location.origin + result["relativePath"];
109 109
       }
110 110
     });
111 111
   }