siyouyou 7 months ago
parent
commit
755db441ff
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/views/streamRadio/index.vue

+ 8 - 8
src/views/streamRadio/index.vue

@@ -14,44 +14,44 @@
       <el-table-column label="音频">
         <el-table-column label="格式" width="120">
           <template slot-scope="scope">
-            {{ scope.row.audioTracks.name }}
+            {{ scope.row.audioTracks?scope.row.audioTracks.name:'' }}
           </template>
         </el-table-column>
         <el-table-column prop="province" label="采样率" width="120">
           <template slot-scope="scope">
-            {{ scope.row.audioTracks.sampleRate }}
+            {{ scope.row.audioTracks?scope.row.audioTracks.sampleRate:'' }}
           </template>
         </el-table-column>
         <el-table-column prop="city" label="声道" width="120">
           <template slot-scope="scope">
-            {{ scope.row.audioTracks.channels }}
+            {{ scope.row.audioTracks?scope.row.audioTracks.channels:'' }}
           </template>
         </el-table-column>
         <el-table-column prop="address" label="码率">
           <template slot-scope="scope">
-            {{ scope.row.audioTracks.bps }}
+            {{ scope.row.audioTracks?scope.row.audioTracks.bps:'' }}
           </template>
         </el-table-column>
       </el-table-column>
       <el-table-column label="视频">
         <el-table-column prop="name" label="格式" width="120">
           <template slot-scope="scope">
-            {{ scope.row.videoTracks.name }}
+            {{ scope.row.videoTracks?scope.row.videoTracks.name:'' }}
           </template>
         </el-table-column>
         <el-table-column prop="province" label="分辨率" width="120">
           <template slot-scope="scope">
-            {{ scope.row.videoTracks.resolution }}
+            {{ scope.row.videoTracks?scope.row.videoTracks.resolution:'' }}
           </template>
         </el-table-column>
         <el-table-column prop="city" label="GOP" width="120">
           <template slot-scope="scope">
-            {{ scope.row.videoTracks.gop }}
+            {{ scope.row.videoTracks?scope.row.videoTracks.gop:'' }}
           </template>
         </el-table-column>
         <el-table-column prop="address" label="码率">
           <template slot-scope="scope">
-            {{ scope.row.videoTracks.bps }}
+            {{ scope.row.videoTracks?scope.row.videoTracks.bps:'' }}
           </template>
         </el-table-column>
       </el-table-column>