From 56a4b88b16b5f86a2a697018a3e2546d3abf73e3 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Fri, 14 Jan 2022 02:04:24 +0800 Subject: [PATCH] 界面二次优化 --- src/components/layouts/box2-class.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/layouts/box2-class.vue b/src/components/layouts/box2-class.vue index faab681..ec5232e 100644 --- a/src/components/layouts/box2-class.vue +++ b/src/components/layouts/box2-class.vue @@ -4,26 +4,28 @@ <div class="blog-scroll "> <div class="blog-log-list"> <div class="blog-log-item" v-for="item in list1"> - <a href="#"> + <router-link to="/main1"> <span>{{item.name}}</span> - <span>{{item.count}}</span> - </a> + </router-link> + + <span>{{item.count}}</span> </div> </div> <div class="blog-log-list"> <div class="blog-log-item" v-for="item in list2"> - <a href="#"> + <router-link to="/box1"> <span>{{item.name}}</span> - <span>{{item.count}}</span> - </a> + </router-link> + <span>{{item.count}}</span> + </div> </div> <div class="blog-log-list"> <div class="blog-log-item" v-for="item in list2"> - <a href="#"> + <router-link to="/box1"> <span>{{item.name}}</span> - <span>{{item.count}}</span> - </a> + </router-link> + <span>{{item.count}}</span> </div> </div> </div> @@ -89,11 +91,11 @@ border-left: none; } - a span:first-child { + .link span:first-child { color: #999; } - a span:last-child { + .link span:last-child { font-weight: 600; font-size: 15px; } -- Gitblit v1.9.1