Răsfoiți Sursa

fix:监控视频缓存问题

zhangjie 2 ani în urmă
părinte
comite
deb5930620

+ 2 - 2
src/features/invigilation/OnlinePatrol/PatrolWarningDetail.vue

@@ -105,7 +105,7 @@
           <div class="warning-videos">
             <div
               v-for="item in viewVideos"
-              :key="item.source"
+              :key="item.liveUrl"
               class="student-video-item"
             >
               <div class="student-video-container">
@@ -219,6 +219,7 @@ export default {
       this.holding = false;
     },
     async getStudentVideo() {
+      this.viewVideos = [];
       const res = await warningStudentDetail({
         examRecordId: this.examRecordId,
       });
@@ -246,7 +247,6 @@ export default {
         records[item.source] = item;
       });
 
-      this.viewVideos = [];
       orderSources.forEach((source) => {
         if (records[source]) {
           this.viewVideos.push(records[source]);

+ 1 - 1
src/features/invigilation/RealtimeMonitoring/WarningDetail.vue

@@ -180,7 +180,7 @@
           <div class="warning-videos">
             <div
               v-for="item in viewVideos"
-              :key="item.source"
+              :key="item.liveUrl"
               class="student-video-item"
             >
               <div class="student-video-container">