From 649a08629bd94f19cec78ac292a92e964b454b3e Mon Sep 17 00:00:00 2001 From: chenxing Date: Mon, 28 Sep 2026 12:32:58 +0800 Subject: [PATCH] =?UTF-8?q?[CMS-VISUAL]=20F3:=20=E6=A0=8F=E7=9B=AE?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=A7=BB=E9=99=A4=E3=80=8C=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=BD=A2=E6=80=81=E3=80=8D=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=EF=BC=8C=E5=BD=A2=E6=80=81=E7=BB=9F=E4=B8=80=E5=BD=92=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=B8=83=E5=B1=80=E7=BC=96=E8=BE=91=E5=99=A8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cms/CategoryManage.vue | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/views/cms/CategoryManage.vue b/src/views/cms/CategoryManage.vue index 14f7e7b..2bf6032 100644 --- a/src/views/cms/CategoryManage.vue +++ b/src/views/cms/CategoryManage.vue @@ -37,12 +37,8 @@ const typeDict = [ ]; const typeLabel = (t?: number) => typeDict.find(i => i.value === t)?.label || "未知"; -/** 首页展示形态(docs/12;仅列表型栏目有意义,空=主题默认卡) */ -const homeStyleDict = [ - { value: "", label: "默认卡片" }, - { value: "news_grid", label: "双栏新闻卡" }, - { value: "media_focus", label: "媒体聚焦列表" }, -]; +// F3(docs/20 §四):「首页展示形态」配置入口已收敛到「站点设置 → 首页布局」区块属性, +// 栏目管理只管数据(名称/类型/排序/状态/SEO);存量 homeStyle 值由后端保存时保留。 const sortModal = ref(false); const sortParentId = ref(null); @@ -63,7 +59,6 @@ const form = reactive({ type: 1, linkUrl: "", content: "", - homeStyle: "", sortNo: 0, seoTitle: "", seoDescription: "", @@ -158,7 +153,6 @@ async function showAddNode() { form.type = 1; form.linkUrl = ""; form.content = ""; - form.homeStyle = ""; form.sortNo = 0; form.seoTitle = ""; form.seoDescription = ""; @@ -181,7 +175,6 @@ function showEditNode() { type: node.type ?? 1, linkUrl: node.linkUrl || "", content: node.content || "", - homeStyle: node.homeStyle || "", sortNo: node.sortNo ?? 0, seoTitle: node.seoTitle || "", seoDescription: node.seoDescription || "", @@ -263,7 +256,6 @@ async function save() { type: form.type, linkUrl: form.linkUrl || undefined, content: form.content || undefined, - homeStyle: form.type === 1 && form.homeStyle ? form.homeStyle : undefined, sortNo: form.sortNo, seoTitle: form.seoTitle || undefined, seoDescription: form.seoDescription || undefined, @@ -549,12 +541,6 @@ function openLink(url: string) {
编辑器加载中……
- - -

首页该栏目区块的呈现形态;展示形态由当前皮肤包的主题化实现决定,未实现的形态回落通用骨架渲染。也可在「站点设置 → 首页布局」里按区块单独指定形态(以那里为准)。

-
SEO 设置