更新了逻辑

This commit is contained in:
weipengfei 2023-10-19 09:09:46 +08:00
parent d00ca8006e
commit 7c28740994
1 changed files with 3 additions and 3 deletions

View File

@ -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();
})