From c139d1c4ecfc45bd1e2b95e23a29eec75d04db5e Mon Sep 17 00:00:00 2001
From: Gary Gu <garygu@Garydebijibendiannao.local>
Date: Wed, 28 May 2025 15:06:03 +0800
Subject: [PATCH] feat: 增加实况默认选中

---
 src/views/Home.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/views/Home.vue b/src/views/Home.vue
index 203af13..747f117 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -25,7 +25,7 @@
    </div>
     <!-- 项目实况-->
     <div class="side-menu z-[100]" v-if="currentView === 'project'">
-      <el-cascader popper-class="custom-dropdown" v-model="videoSrc" :options="liveList" @change="handleLiveChange" :props="{ value: 'id',label: 'label',children: 'JSCProjectMonitorList'}"/>
+      <el-cascader popper-class="custom-dropdown" v-model="liveValue" :options="liveList" @change="handleLiveChange" :props="{ value: 'id',label: 'label',children: 'JSCProjectMonitorList'}"/>
     </div>
 
 
@@ -100,6 +100,7 @@
   },
  data() {
   return {
+    liveValue:[],
     playerStatus: '未就绪',
     errorMessage:'',
     flvPlayer:null,
@@ -398,6 +399,7 @@
          }
          this.isLoading = false
          this.liveList = result
+         this.liveValue = [result[0].id, result[0].JSCProjectMonitorList[0].id]
          this.videoSrc = this.liveList[0].JSCProjectMonitorList[0].MonitorUrl
          this.loadVideo();
        }

--
Gitblit v1.9.3