瀏覽代碼

Merge branch 'v2.0' of eta_forum/eta_forum_admin_front into debug

leichen 4 月之前
父節點
當前提交
f65e953568
共有 2 個文件被更改,包括 12 次插入3 次删除
  1. 2 1
      src/views/business_manage/components/SetPermission.vue
  2. 10 2
      src/views/training/modifyVideoPage.vue

+ 2 - 1
src/views/business_manage/components/SetPermission.vue

@@ -4,12 +4,13 @@
             :class="!props.isShowFoot ? 'input-wrap' : ''"
             placeholder="分类名称"
             v-model="searchTxt"
-            @change="changeSearchTxt"
+            @Enter="changeSearchTxt"
         >
           <template #prefixIcon><SearchIcon /></template>
         </t-input>
         <div class="tree">
             <t-tree
+                :expandAll="searchTxt !== ''"
                 ref="tree"
                 v-model="allChecked"
                 :data="treeList"

+ 10 - 2
src/views/training/modifyVideoPage.vue

@@ -236,6 +236,10 @@ const handleUploadVideo = async (file) => {
   timeDuration.value = `${String(parseInt(duration / 60)).padStart(2, '0')}:${String(parseInt(duration % 60)).padStart(2, '0')}`;
   uploadVideo(file);
   isVideoUploading.value = true;
+  return {
+    status: 'success',
+    response: {},
+  };
 };
 
 // 获取视频时长的Promise
@@ -394,12 +398,16 @@ const handlePreviewVideo = () => {
   previewPopTitle.value = form.value.Title || '暂无标题';
   previewVideoUrl.value = form.value.VideoUrl;
   previewPop.value = true;
-  previewVideo.play();
+  previewVideo.value.play();
 };
 
 // 结束预览弹窗关闭回调 -- 暂停视频
 const endingPreview = () => {
-  previewVideo.pause();
+  
+  if (previewVideo.value) {
+    previewPop.value = false;
+    previewVideo.value.pause();
+  }
 };
 
 // 生命周期钩子 - 组件挂载时执行