diff --git a/apps/web-antd/src/api/mp/freePublish/index.ts b/apps/web-antd/src/api/mp/freePublish/index.ts index bc50efe96..fd7b2596c 100644 --- a/apps/web-antd/src/api/mp/freePublish/index.ts +++ b/apps/web-antd/src/api/mp/freePublish/index.ts @@ -3,6 +3,19 @@ import type { PageParam, PageResult } from '@vben/request'; import { requestClient } from '#/api/request'; export namespace MpFreePublishApi { + /** 图文文章内容 */ + export interface FreePublishArticle { + title?: string; + thumbUrl?: string; + picUrl?: string; + url?: string; + } + + /** 图文内容 */ + export interface FreePublishContent { + newsItem?: FreePublishArticle[]; + } + /** 自由发布文章信息 */ export interface FreePublish { id?: number; @@ -12,7 +25,7 @@ export namespace MpFreePublishApi { title: string; author: string; digest: string; - content: string; + content?: FreePublishContent; thumbUrl: string; status: number; publishTime?: Date; diff --git a/apps/web-antd/src/views/erp/home/index.vue b/apps/web-antd/src/views/erp/home/index.vue index efb49045b..2cd3845e7 100644 --- a/apps/web-antd/src/views/erp/home/index.vue +++ b/apps/web-antd/src/views/erp/home/index.vue @@ -12,10 +12,6 @@ import TimeSummaryChart from './modules/time-summary-chart.vue'; defineOptions({ name: 'ErpHome' }); const loading = ref(false); // 加载中 - -/** 图表组件引用 */ -const saleChartRef = ref(); -const purchaseChartRef = ref();