From 075136efb138ce1de76bfd1b7458b4a164c9de2b Mon Sep 17 00:00:00 2001
From: liu <2302563948@qq.com>
Date: Tue, 11 Aug 2026 10:53:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E9=A1=B9=E6=A0=B7=E5=BC=8F=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/category/index.less | 4 ++--
src/pages/category/index.tsx | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/pages/category/index.less b/src/pages/category/index.less
index 1e53496..c296e19 100644
--- a/src/pages/category/index.less
+++ b/src/pages/category/index.less
@@ -24,12 +24,12 @@
background: rgb(255 255 255);
border-radius: 20px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
- padding: 20px 20px 30px;
+ padding: 28px 28px 30px;
.grid-item {
display: flex;
margin-bottom: 10px;
- padding: 20px;
+ padding: 14px 0;
border-bottom: 1px solid #ddd;
}
diff --git a/src/pages/category/index.tsx b/src/pages/category/index.tsx
index d0726e3..c57b246 100644
--- a/src/pages/category/index.tsx
+++ b/src/pages/category/index.tsx
@@ -1,5 +1,5 @@
import { View, Text } from '@tarojs/components'
-import {Image, Loading, Tag} from '@antmjs/vantui'
+import {Image, Loading, Space, Tag} from '@antmjs/vantui'
import { useState, useEffect } from 'react'
import Taro from '@tarojs/taro'
import { getCategoryLinks } from '@/api/home'
@@ -58,11 +58,11 @@ export default function Category() {
{item.title}
-
- { item.tag.length > 0 && item.tag.map((tag, index) => (
+
+ { item.tag && item.tag.length > 0 && item.tag.map((tag, index) => (
{tag}
))}
-
+
))}