瀏覽代碼

更新 VideoCard.vue, title 最多显示 10 个字符

reghao 9 月之前
父節點
當前提交
5806ce88ef
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/card/VideoCard.vue

+ 2 - 1
src/components/card/VideoCard.vue

@@ -28,7 +28,8 @@
         </router-link>
         <div style="padding: 14px">
           <router-link style="text-decoration-line: none" target="_blank" :to="`/video/${video.videoId}`">
-            <span style="left: 0;margin-bottom: 0px;color: black;" v-html="video.title">
+            <span style="left: 0;margin-bottom: 0px;color: black;">
+              {{ video.title | ellipsis }}
             </span>
           </router-link>
         </div>