From ce7cbc75df7553376920984f487faf56eb012fb9 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Sat, 18 Jul 2026 17:14:02 +0800 Subject: [PATCH] feat(diy-category): add skeleton loading state for category page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化分类页面加载体验,请求分类数据时显示骨架屏占位,避免页面先展示空态再切换内容造成的闪烁问题,同时调整了空状态的渲染逻辑,请求失败时也能正确显示空态占位 --- components-diy/diy-category.vue | 98 +++++++++++++++++++++++++++++++-- 1 file changed, 92 insertions(+), 6 deletions(-) diff --git a/components-diy/diy-category.vue b/components-diy/diy-category.vue index 245efeb..b385335 100644 --- a/components-diy/diy-category.vue +++ b/components-diy/diy-category.vue @@ -77,7 +77,21 @@ - + + + + + + + + + + + + @@ -138,10 +152,6 @@ {{ $lang('components-diy.diy-category.noCategory') }} - - - {{ $lang('components-diy.diy-category.noCategory') }} -