From 3e779e4efdc02ff946cb4830938255a6fc08a376 Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Wed, 21 Oct 2026 17:16:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E5=A4=9A=E9=80=89=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=8E=E5=86=85=E5=AE=B9=E7=B1=BB=E5=9E=8B=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../contentManagement/DramaManagementView.vue | 69 ++++++++++++++----- 1 file changed, 53 insertions(+), 16 deletions(-) diff --git a/src/views/contentManagement/DramaManagementView.vue b/src/views/contentManagement/DramaManagementView.vue index 439ebad..cba1ef5 100644 --- a/src/views/contentManagement/DramaManagementView.vue +++ b/src/views/contentManagement/DramaManagementView.vue @@ -214,9 +214,15 @@ function dramaTypeLabel(value) { return dramaTypeOptions.find((item) => item.value === value)?.label || '真人剧' } -function rowCategoryNames(row) { - const names = Array.isArray(row.categoryNames) ? row.categoryNames.filter(Boolean) : [] - return names.length ? names.join(' / ') : row.genre || '—' +function rowCategoryList(row) { + if (Array.isArray(row.categoryNames) && row.categoryNames.length) { + return row.categoryNames.filter(Boolean) + } + if (!row.genre) return [] + return row.genre + .split('/') + .map((name) => name.trim()) + .filter(Boolean) } function rowDramaTypes(row) { @@ -394,9 +400,8 @@ onMounted(async () => { :value="item.code" /> { :value="item.id" /> { >— - - - + + + +