diff --git a/src/views/scene/index.vue b/src/views/scene/index.vue index b9bde2a..23b97fc 100644 --- a/src/views/scene/index.vue +++ b/src/views/scene/index.vue @@ -66,14 +66,14 @@ const orderList = ref([]); const loadOrderList = ()=>{ axios.get('https://chat.lihaink.cn/index/demo1').then((res)=>{ orderList.value = res.data.data; - if(orderList.value[3].type==1){ + if(orderList.value[0].type==1){ isVideo.value = false; showIframe.value = true; - iframeSRC.value = orderList.value[3].uri; + iframeSRC.value = orderList.value[0].uri; }else { isVideo.value = true; showIframe.value = false; - MP4SRC.value = orderList.value[3].uri; + MP4SRC.value = orderList.value[0].uri; nextTick(()=>{ videoRef.value.play(); })