Commit a93f9961e205009d1ec7d268cfc348b23954ac5b
1 parent
d8f101d9
perf: camera manage list mode preview video happend error
Showing
1 changed file
with
10 additions
and
1 deletions
@@ -19,6 +19,12 @@ | @@ -19,6 +19,12 @@ | ||
19 | /> | 19 | /> |
20 | </div> | 20 | </div> |
21 | </div> | 21 | </div> |
22 | + <!-- <div | ||
23 | + class="bg-black h-80 text-light-50 w-full h-full flex justify-center items-center" | ||
24 | + v-if="!showVideo" | ||
25 | + > | ||
26 | + 视频播放出错啦! | ||
27 | + </div> --> | ||
22 | </BasicModal> | 28 | </BasicModal> |
23 | </div> | 29 | </div> |
24 | </template> | 30 | </template> |
@@ -89,7 +95,10 @@ | @@ -89,7 +95,10 @@ | ||
89 | options.src = url; | 95 | options.src = url; |
90 | const type = (url as CameraModel).videoUrl.replace(reg, ''); | 96 | const type = (url as CameraModel).videoUrl.replace(reg, ''); |
91 | options.type = getMediaType(type); | 97 | options.type = getMediaType(type); |
92 | - } catch (error) {} | 98 | + } catch (error) { |
99 | + } finally { | ||
100 | + showVideo.value = true; | ||
101 | + } | ||
93 | } | 102 | } |
94 | } | 103 | } |
95 | ); | 104 | ); |