浏览代码

fix: bug修复阶段v2.4

chenpeng 1 周之前
父节点
当前提交
1421f3b8ee
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      components/business/trends/comp/item.vue
  2. 1 1
      components/business/trends/comp/item2.vue

+ 1 - 1
components/business/trends/comp/item.vue

@@ -38,7 +38,7 @@ async function clickLoginAndDownload(item: any) {
           {{ item.subhead }}
         </div>
         <div class="flex items-center">
-          <el-button class="!bg-#9B6CFF w-140px text-14px !text-#fff !b-#9B6CFF !h-48px py-18px">
+          <el-button v-if="item.blogSlug" class="!bg-#9B6CFF w-140px text-14px !text-#fff !b-#9B6CFF !h-48px py-18px">
             <NuxtLink :to="`/blog/${item.blogSlug}`">
               Learn More
             </NuxtLink>

+ 1 - 1
components/business/trends/comp/item2.vue

@@ -34,7 +34,7 @@ async function clickLoginAndDownload(item: any) {
           {{ item.subhead }}
         </div>
         <div class="flex items-center">
-          <el-button class="!bg-#9B6CFF w-140px text-14px !text-#fff !b-#9B6CFF !h-48px py-18px">
+          <el-button v-if="item.blogSlug" class="!bg-#9B6CFF w-140px text-14px !text-#fff !b-#9B6CFF !h-48px py-18px">
             <NuxtLink :to="`/blog/${item.blogSlug}`">
               Learn More
             </NuxtLink>