wxy 4 年 前
コミット
e75e1dbb08
2 ファイル変更4 行追加6 行削除
  1. 1 1
      src/router/index.js
  2. 3 5
      src/views/channel/index.vue

+ 1 - 1
src/router/index.js

@@ -248,7 +248,7 @@ const routes = [
   {
     path: '/channel/index',
     name: 'channel',
-    meta: { title: '科技在线频道', isleftarrow: false },
+    meta: { title: '科技在线频道', isleftarrow: true },
     component: () => import('../views/channel/index.vue'),
   },
 ];

+ 3 - 5
src/views/channel/index.vue

@@ -17,9 +17,9 @@
                 </el-image>
               </el-col>
               <el-col :span="13" class="text">
-                <el-col :span="24" class="title">{{ item.title }}</el-col>
+                <el-col :span="24" class="title textOver">{{ item.title }}</el-col>
                 <el-col :span="24" class="desc">{{ item.desc }}</el-col>
-                <el-col :span="24" class="time">{{ item.create_time }}</el-col>
+                <el-col :span="24" class="time textOver">{{ item.create_time }}</el-col>
               </el-col>
             </el-col>
           </el-col>
@@ -121,9 +121,6 @@ export default {
         .title {
           font-size: 16px;
           font-weight: bolder;
-          overflow: hidden;
-          text-overflow: ellipsis;
-          white-space: nowrap;
         }
         .desc {
           margin-top: 9px;
@@ -138,6 +135,7 @@ export default {
           font-size: 12px;
           position: absolute;
           bottom: 0px;
+          width: 98%;
         }
       }
     }