From 47b8b96006d1cc96c61f7c3fd88442a2862fa9c8 Mon Sep 17 00:00:00 2001
From: du <13220750630.163.com>
Date: 星期二, 25 三月 2025 10:46:40 +0800
Subject: [PATCH] 音频播放器删除

---
 easegen-front/src/views/chooseTemplate/index.vue |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/easegen-front/src/views/chooseTemplate/index.vue b/easegen-front/src/views/chooseTemplate/index.vue
index 6d13699..eb308d4 100644
--- a/easegen-front/src/views/chooseTemplate/index.vue
+++ b/easegen-front/src/views/chooseTemplate/index.vue
@@ -387,9 +387,7 @@
             }}</el-button>
           </div>
           <div class="audio-play" v-if="showAudioPlay">
-            <div>
-              <vue-audio-better :src="audioUrl" :options="playerOptions" />
-            </div>
+            <div>{{ t('courseCenter.listeningTrial') }}...</div>
             <el-button @click="pauseAudio">{{ t('courseCenter.cancelTrialListening') }}</el-button>
           </div>
           <div class="audio-play" v-if="showAudioPlay1">
@@ -577,7 +575,6 @@
   </div>
 </template>
 <script lang="ts" setup>
-import VueAudioBetter from 'vue-audio-better';
 import { ref, reactive, onMounted } from 'vue'
 import draggable from 'vuedraggable'
 
@@ -646,12 +643,6 @@
     inputRef.value.focus()
   })
 }
-const playerOptions = {
-  autoplay: false, // 鏄惁鑷姩鎾斁
-  controls: true, // 鏄惁鏄剧ず鎺у埗鏉�
-  preload: 'auto', // 棰勫姞杞界瓥鐣�
-};
-let audioUrl = ''
 // 淇濆瓨缂栬緫鍚庣殑鍚嶇О
 const saveEdit = () => {
   isEditing.value = false
@@ -1236,6 +1227,7 @@
       item.isActive = false
     })
     hostList.value = data.list
+    humanId=hostList.value[0].id
     selectHost.value = hostList.value[0]
     // 鍒囨崲鏁板瓧浜哄Э鍔挎潯浠舵椂锛屼慨鏀规暟瀛椾汉鍦╬pt鐨勪綅缃�
     initHumanPositon(selectHost.value)
@@ -1728,7 +1720,6 @@
     .then((res) => {
       if (res && !res.error) {
         console.log(res)
-        audioUrl = res
         showAudioPlay1.value = false
         showAudioPlay.value = true
         // 濡傛灉杩斿洖缁撴灉鏈夋晥涓旀病鏈夐敊璇紝鍒濆鍖朅udio

--
Gitblit v1.9.3