From 1394688364afec0d3c2b2ea384f0f4b078eb4fc2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 16 Oct 2025 22:06:52 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90mall=20=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E3=80=91=E6=96=87=E7=AB=A0=E5=88=86=E7=B1=BB=EF=BC=88100%=20el?= =?UTF-8?q?e=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/mall/promotion/article/index.ts | 39 +++++++------------ .../views/system/user/modules/dept-tree.vue | 4 +- 2 files changed, 15 insertions(+), 28 deletions(-) diff --git a/apps/web-ele/src/api/mall/promotion/article/index.ts b/apps/web-ele/src/api/mall/promotion/article/index.ts index 9a2ac97d7..cf2f90b7a 100644 --- a/apps/web-ele/src/api/mall/promotion/article/index.ts +++ b/apps/web-ele/src/api/mall/promotion/article/index.ts @@ -5,32 +5,19 @@ import { requestClient } from '#/api/request'; export namespace MallArticleApi { /** 文章管理 */ export interface Article { - /** 文章编号 */ - id: number; - /** 分类编号 */ - categoryId: number; - /** 文章标题 */ - title: string; - /** 作者 */ - author: string; - /** 封面图 */ - picUrl: string; - /** 文章简介 */ - introduction: string; - /** 浏览数量 */ - browseCount: string; - /** 排序 */ - sort: number; - /** 状态 */ - status: number; - /** 商品编号 */ - spuId: number; - /** 是否热门 */ - recommendHot: boolean; - /** 是否轮播图 */ - recommendBanner: boolean; - /** 文章内容 */ - content: string; + id: number; // 文章编号 + categoryId: number; // 分类编号 + title: string; // 文章标题 + author: string; // 作者 + picUrl: string; // 封面图 + introduction: string; // 文章简介 + browseCount: string; // 浏览数量 + sort: number; // 排序 + status: number; // 状态 + spuId: number; // 商品编号 + recommendHot: boolean; // 是否热门 + recommendBanner: boolean; // 是否轮播图 + content: string; // 文章内容 } } diff --git a/apps/web-ele/src/views/system/user/modules/dept-tree.vue b/apps/web-ele/src/views/system/user/modules/dept-tree.vue index 06035c620..9c4d5a8bf 100644 --- a/apps/web-ele/src/views/system/user/modules/dept-tree.vue +++ b/apps/web-ele/src/views/system/user/modules/dept-tree.vue @@ -31,9 +31,9 @@ function handleSearch(value: string) { } /** 选中部门 */ -const handleSelect = (data: any) => { +function handleSelect(data: any) { emit('select', data); -}; +} /** 初始化 */ onMounted(async () => {